I am trying to create a client server application in Java using UDP. The problem is when the client connects to the server, the server registers the client, and another application tries to use clientIP and clientPort to connect to the client; the client cannot receive any data.
I managed to recreate the DatagramSocket to connect to the client using its IP and port, but when this is done using another application, the connection is not reached.
I would like to mention that the port that I am listening to for the client on the server is different from the port that the server application uses.
How can we reach this message?
Please help me. Thanks.
bapi
source
share