If you have the phone connected to wifi it should work.  While using 3G or 
other phone network it does not work.  I tested this empirically about a 
year ago.

http://developer.android.com/guide/google/gcm/index.html

Using Google Cloud Messaging may be a good alternative.



On Wednesday, August 1, 2012 1:17:59 PM UTC-4, njman wrote:
>
> I'm using ServerSocket() object to create a proxy server
> on the phone itself.
>
> But I can't seem to connect to it.
>
> The phone is running 3g and has an ip address.
>
> i'm using port 1962. Maybe that's the problem.
>
> i'm trying to connect from my desktop
>
> http://ipaddress:1962/test
>
>
> help appreciated.
>
> p.s. again this is on the phone itself.
>
> on the emulator, if i use localhost (from the android browser),
> it works.
>
>
On Wednesday, August 1, 2012 1:17:59 PM UTC-4, njman wrote:
>
> I'm using ServerSocket() object to create a proxy server
> on the phone itself.
>
> But I can't seem to connect to it.
>
> The phone is running 3g and has an ip address.
>
> i'm using port 1962. Maybe that's the problem.
>
> i'm trying to connect from my desktop
>
> http://ipaddress:1962/test
>
>
> help appreciated.
>
> p.s. again this is on the phone itself.
>
> on the emulator, if i use localhost (from the android browser),
> it works.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to