在测试Android模拟器的本地主机模拟器、主机、测试、Android

2023-09-12 03:57:20 作者:思密哒情人

我的Web应用程序在本地主机服务器运行。在我的仿真器的网址是的http://本地主机:8080 / MyAction的

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

是否有可能从服务器中检索咨询无论?

Is it possible to retrieve the informaion from the server?

推荐答案

本地主机是设备自身的loopback接口,如果你想访问你的开发机上使用10.0.2.2。

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

更多关于它的here.