Lei wrote: > I want to program a server on android phone. I use socket. > Is the android emulator's IP address the same to the PC's?
No. On the emulator, 10.0.2.2 is a magic IP address that converts into localhost on your PC. http://code.google.com/android/reference/emulator.html#networkaddresses -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---