Fopa Léon Constantin Fopa Léon Constantin - 1 year ago 137
Android Question

How to connect to my http://localhost web server from Android Emulator in Eclipse

What can I do in Eclipse's Android emulator to connect it to my localhost web server page at


I've tried it, but the emulator still takes my request like a Google search for localhost or worse it says that it didn't found the page while my web server is normally running.

Answer Source

The localhost refers to the device on which the code is running, in this case the emulator.

If you want to refer to the computer which is running the Android simulator, use the IP address instead. You can read more from here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download