java socket program on VMware player : network unavailable

831 views Asked by At

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

2

There are 2 answers

2
AlexR On

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.

0
sujendra On

In order to use sockets in virtual machine, virtual sockets are to be created instead of normal sockets as virtual machine lies in its own machine, look for virtual socket programming API suitable for your virtual machine software you are using