Thursday, August 2, 2012

[android-developers] Re: creating a server app on the Android

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.


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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment