[android-developers] Re: How to assign/get the ip address of an emulator ?

2009-06-10 Thread David Turner
http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking On Tue, Jun 9, 2009 at 8:35 PM, sandy.andr...@gmail.com < sandy.andr...@gmail.com> wrote: > > I am running a server application on emulator. I want to connect to > the server through a client application running

[android-developers] Re: How to assign/get the ip address of an emulator ?

2009-06-09 Thread Roman
The IP address of the emulator is normally hard coded to 10.0.2.15 You can get the IP address with implementing a method geLocalHostIp() public static IpAddress getLocalHostAddress() { InetAddress ipAddress=null; /** Detects the default IP address of this host. */