test the localhost in android emulator

自闭症网瘾萝莉.ら 提交于 2019-12-28 04:51:15

问题


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

Is it possible to retrieve the information from the server?


回答1:


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

More about it here.



来源:https://stackoverflow.com/questions/2234742/test-the-localhost-in-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!