Warm tip: This article is reproduced from serverfault.com, please click

emulation-如何从Genymotion android模拟器访问localhost?

(emulation - How to access localhost from a Genymotion android emulator?)

发布于 2013-11-28 03:36:27

我不知道如何从Genymotion android模拟器访问localhost。顺便说一句,我正在使用MAMP。

Questioner
mownier
Viewed
0
2017-05-23 20:02:48

更新

genymotion更新到2.2,你可以使用后10.0.3.2裁判

另一种方法

要通过Genymotion访问本地主机,请使用你的PC IP地址。要获取你的IP地址,请访问:

start -> cmd -> ipconfig

然后搜索IPv4,复制IP并将其粘贴到你的URL中。它看起来应该如下所示:

String YourURL = "http://192.168.0.106:8888/your_script_location.php";

希望这对你也有用,请给我反馈。

PS:如果它不起作用,请关闭防火墙和PC中包含的所有防病毒应用程序。