Hi Mark Murphy Thanks for your replay. And the G1 (the real phone) may have a IP address. Am I right?
Regards, Lei On Nov 11, 9:27 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

