在测试Android模拟器的本地主机 [英] test the localhost in android emulator

查看:143
本文介绍了在测试Android模拟器的本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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.

更多关于它的<一个href="http://developer.android.com/guide/developing/devices/emulator.html#networkaddresses">here.

这篇关于在测试Android模拟器的本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆