连接两个模拟器,以在它们之间建立Socket连接 [英] Connecting two emulators to establish Socket connection between them
问题描述
我想要两个连接两台模拟器和我要在它们之间建立SOCKET连接。 问题我面对的是我必须使用两个不同的IP地址,客户端和插座。 Android模拟器具有静态IP 10.0.2.15。 是否可以更改IP地址? 如果没有,那么我该如何建立2仿真器之间的Socket连接。
I want two connect two emulators and i wish to establish SOCKET connection between them. Problem i am facing is I have to use two different ip address for client and socket. Android emulator have static ip 10.0.2.15. Is it possible to change the ip address? If not then how can i establish Socket connection between 2 emulators.
该计划,我有工作正常的两个设备,但如何做到这一点有两个模拟器
The program i have is working fine with two devices,but how to do it for two emulators
推荐答案
看看<一href="http://stackoverflow.com/questions/6082223/problem-in-establishing-a-connection-between-two-android-emulators">this螺纹,<一个href="http://stackoverflow.com/questions/5064304/how-can-i-forward-my-localhost-ip-address-to-an-android-emulator">this螺纹和端口转发的文档。另外看看这个线程在谷歌论坛。
这篇关于连接两个模拟器,以在它们之间建立Socket连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!