http - Android emulator to communicate with pc emulator running on -


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

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

"Localhost" will not work for Android emulator because the local emulator will be the same. The computer will not be connected to a laptop.

Which address should I specify?

Use IP 10.0.2.2 from within the Android emulator to connect to a local machine. See on the Android Developer Site.


Comments

Popular posts from this blog

google indexing -

wpf controls - Trigger on Image inside a Button WPF -

wpf - Converter stops filter working -