我在我的应用程序中使用典当服务器工具,并有问题来测试它,因为pawserver工具为所有仿真器实例提供相同的IP地址(10.0.2.15)。
发布于 2013-12-09 22:37:49
您可能想试试基因运动。
因为它是基于VirtualBox的,所以您可以在每个实例中设置一个IP地址。
发布于 2013-12-09 23:05:42
这些文档实际上包含了有关执行您想要做的事情的信息。
请查看题为“使用网络重定向”一节,其中指出:
To communicate with an emulator instance behind its virtual router, you need to set up network redirection on the virtual router. Clients can then connect to a specified guest port on the router, while the router directs traffic to/from that port to the emulated device's host port. http://developer.android.com/tools/devices/emulator.html
https://stackoverflow.com/questions/20481800
复制相似问题