As a general rule, you shouldn't expect that anyone will be able to connect to an Android phone directly - in most circumstances the IP addresses that those devices get either aren't routable or aren't reachable.
JBQ On Tue, Nov 11, 2008 at 8:08 PM, Lei <[EMAIL PROTECTED]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---

