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: http://localhost:8080/CataractServer/CataractServlet
在安装刺.器的地方,在PC上运行 to。
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.