Sunday, April 27, 2014

Open "localhost" web server from Android Emulator using Eclipse

A localhost plainly refers the standard hostname given to the address assigned to the loopback network interface. When translating into an IP address, a localhost is always designated as 127.0.0.1.

If you want to refer to the computer which is running the Android emulator, try the IP address 10.0.2.2 instead. You can read more info from,

Refer : http://developer.android.com/tools/devices/emulator.html#networkaddresses

No comments:

Post a Comment