使用TCP连接模拟器模拟器、TCP

2023-09-07 12:28:59 作者:长相依

再HY!我试图连接两个模拟器运行的服务器和客户端在同一PC.The的是,其中一个是我应该以它们之间的连接使用每个模拟器的虚拟machine.What地址里面呢?我使用的是TCP基于连接!第一个模拟器上运行的Windows 7在VMware里面第二个是在XP中我的电脑网络内的IP是192.168.71.1真的gratefull如果u answer.Thx!

hy again! I'm trying to connect two emulators running as server and client on the same PC.The thing is that one of them is inside a virtual machine.What addresses should I use for each of the emulators in order to connect between them? I'm using a TCP based connection! The first emulator is running on Windows 7 The second one inside the Vmware is on Xp The IP of my PC inside the network is 192.168.71.1 Really gratefull if u answer.Thx!!

推荐答案

我想你想使用本地主机地址(127.0.0.1)。设置服务器以侦听,一旦它运行起来有客户端连接,你应该是好去。 (请确保您的端口使用火柴,很明显。)

I imagine you'd want to use the localhost address (127.0.0.1). Set the server up to listen and once it is up and running have the client connect and you should be good to go. (Make sure the port you use matches, obviously.)

http://en.wikipedia.org/wiki/Localhost