Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use an Android emulator to use services running on my local machine. I have a site running under IIS which in my host file looks like this:

I have several sites running under Apache Tomcat. My host file for Tomcat related sites:  # port:8090  # port:8081  # port:8082  # port:8086

What I have tried so far (in the following steps):

adb pull /etc/hosts

Edit Android host file:        localhost

adb remount
adb push hosts /etc/hosts

Then I try to visit in the browser and am told webpage not found. I’d at least expect it to go to

What I would ideally like is to be able to go to any site on my local machine which are specified in the above host file examples.

I am on Windows 7 and using Tomcat 6. The emulator I am using is nexus one.

share|improve this question

closed as off topic by Izzy, Liam W, t0mm13b, roxan, Matthew Read Jan 10 '13 at 16:40

Questions on Android Enthusiasts Stack Exchange are expected to relate to Android within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Guess you need to learn some networking stuff first: is the so-called "loopback", and always refers to the machine itself. Do address a service from a machine different than the one it is running on, you need to use the device's "external" IP (intranet or internet), not the 127.* ones. Having said this, it is not an Android related question, and thus might be off-topic here; probably or are better places to ask. – Izzy Jan 10 '13 at 13:30
When I go to in the Android browser, I am eventually presented with the site running on IIS, on my local machine that would be It's extremely slow though. – Ilyas Patel Jan 10 '13 at 14:09
10.0.x.x is a valid IP for that, right (Intranet). It goes via your network, so from your Android device via WiFi via router via cable to the target -- which of course is not that fast as if you run the browser directly on the service machine. And again, this is no Android specific question (see above). – Izzy Jan 10 '13 at 14:46