tags:

views:

207

answers:

1

Hi,

I have written a UDP client server chat, I am able to communicate to server if both server and client are on same machine, but i am not able to do so when client is on some other machine using diff ip address. Is there any special setting to achieve this?

Regards, Tara

A: 

Ping the other machine.

Disable firewall software on the other machine?

Make sure the other machine is listening on its actual IP address instead of localhost.

sylvanaar
When I am invoking client from my own machine, I am able to communicate with server(Which is also on my machine) by using both localhost and the ip address. But on the other machine, I allow the firewall access for the client program and used the ip address of machine to try connecting to the server on my machine. The client is not givin any error but it is not able to communicate to server on my machine.
Tara Singh
Have you check the firewall for port number also? Usually it has fine grained permission to the port number also. Check the client connection code again, it might be swallowing the exception. It can not be not giving any error, at the very least it would have given time out exception.
DJ