test the localhost in android emulator

saravanan picture saravanan · Feb 10, 2010 · Viewed 32.5k times · Source

My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction

Is it possible to retrieve the information from the server?

Answer

Nikola Smiljanić picture Nikola Smiljanić · Feb 10, 2010

Localhost is device's own loopback interface, if you're trying to access your development machine use 10.0.2.2.

More about it here.