Android Emulator Networking Issues
<p>Good day all,
I am a newbie in android development and I am having this challenge with my project:
 in my android code am trying to make a HttpURLConnection conection to a servlet at:
<a href="http://localhost:8080/CataractServer/CataractServlet" rel="nofollow">http://localhost:8080/CataractServer/CataractServlet</a></p>

<p>running on tomcat on the PC same where the android emulator is installed.</p>

<p>The problem is that it is resolving the localhost to mean the android phone itself so
the code never connects to the servlet and keeps throwing exceptions.
How can i get the emulator to connect to the servlet runing on my pc.
I dont have access to a lan, i would have put the servlet on another pc and use the ip.</p>
