views:

63

answers:

1

I have an application that I will run on two separate emulators.

This application uses httpclient to communicate to the server application, that I will run on the same computer as the emulators are running.

"localhost" for the android emulator wont work as local would be the emulator itself. The computer will not be connected to a laptop.

Which address should I specify?

+1  A: 

Use the IP 10.0.2.2 from within the Android emulator to connect to the local machine. See Emulator Networking on the Android developer site.

Dan Dyer
Thank you, Dan. Just what I was looking for!
Anon