Can't connect android emulator to look at local sites and services
<p>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:</p>

<pre><code>127.0.0.1       www.local.company.co.uk
</code></pre>

<p>I have several sites running under Apache Tomcat. My host file for Tomcat related sites:</p>

<pre><code>127.0.0.1       internal.localhost.company.com  # port:8090
127.0.0.2       external.localhost.company.com  # port:8081
127.0.0.3       auth.ws.localhost.company.com  # port:8082
127.0.0.8       mysite.localhost.company.com  # port:8086
</code></pre>

<p>What I have tried so far (in the following steps):</p>

<pre><code>adb pull /etc/hosts
</code></pre>

<p>Edit Android host file:</p>

<pre><code>127.0.0.1        localhost
10.0.2.2         myefc.localhost.efinancialcareers.com

adb remount
adb push hosts /etc/hosts
</code></pre>

<p>Then I try to visit myefc.localhost.efinancialcareers.com in the browser and am told webpage not found. I’d at least expect it to go to www.local.company.co.uk.</p>

<p>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.</p>

<p>I am on Windows 7 and using Tomcat 6. The emulator I am using is nexus one.</p>

<p>I've been told here that this may be a networking issue - <a href="http://android.stackexchange.com/questions/37310/cant-connect-android-emulator-to-look-at-local-sites-and-services">http://android.stackexchange.com/questions/37310/cant-connect-android-emulator-to-look-at-local-sites-and-services</a></p>
