简体   繁体   中英

java socket program on VMware player : network unavailable

I am trying to test the connectivity between the local personal computer and the virtual machine by running a client-server socket program.

here is what i am doing :

1) i am running the Kubuntu 10.10 on vm player. 2) Installed java 6 3) Ran a simple java program connectionServer through konsole specifying a port number 7114. 4) Kubuntu shows that its conected with this ip address : 192.168.206.129 5) then on my win 7 machine i ran a java program connectionClient but it gives me the following error : Network is unreachable

I tried pinging the IP adress through dos and it works perfectly but im not able to connect it through my java program. ( Program is correct ). Disabled all the firewalls on my win machine.

please help me or suggest me some troubleshoot steps. I'll be highly grateful to you.

Regards

为了在虚拟机中使用套接字,将创建虚拟套接字而不是普通套接字,因为虚拟机位于其自己的计算机中,请查找适合您所使用的虚拟机软件的虚拟套接字编程API

First check firewall. Typically you have Windows firewall on windows and some firewall on linux. For example if it is iptables say /etc/iptables stop . Then try again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM