0
votes

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

1
Can you tell us how are you using the UDP? Maybe post your code snippet here.DJ.
my mode of operation is like server will multicast the incoming message to all the connected clients. while invoking the client, i have to pass the server address and port number of server as command line argument. Not sure about which code to post, thats why trying to explain the problem in detail !!Tara Singh
Maybe the specific code in the client that makes the connection to server and the server code where it is accepting connection?DJ.

1 Answers

0
votes

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.