[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread Android_n00b
Hi James, Thanks a lot! I actually just figured it out as well and was about to post my solution here. http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking So for anyone having a similar problem, Basically 10.0.2.2 is the Android Emulator's alias to 127.0.0.1 The

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread RichardC
Localhost (127.0.0.1) is the address of the phone or the emulator. I assume that your server program in C is on your devlopment machine. So you need to connect to your PC's IP address. You can use ADB http://developer.android.com/guide/developing/tools/adb.html to setup port forwarding from the

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread James Yum
Hi Android n00b, http://groups.google.com/group/android-developers/browse_thread/thread/acd93714ebb3b2fc/101c925eeefaed15 Cheers, James On Thu, Oct 8, 2009 at 12:57 PM, Android_n00b wrote: