According to Android's documentation, the emulated device's own network/ethernet interface 10.0.2.15.You might want to take a look at http://code.google.com/intl/zh-CN/android/reference/emulator.html#emulatornetworking
On Sat, Jan 17, 2009 at 4:43 PM, Tez <earlencefe...@gmail.com> wrote: > > Hi, > > I have a few questions regarding IP addrs > > 1. When a device acquires an internet data connection, it obtains its > own IP addr, right? > 2. How do I obtain this IP when i'm running the emulator? > > I've tried using the InetAddress class of java.net, but i get > 127.0.0.1 as the IP, What i want is the IP addr if the host on which > it is running > > Cheers, > Earlence > > > > --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---