I am trying to achieve a client server application in Java using UDP. The issue is when client connects to a server, server registers the client and another application tries to use the clientIP and clientPort to connect to the client; client is not able to get any data.
I was able to recreate DatagramSocket to connect to Client using his IP and port but when this done by different application, the communication is not achieved.
I would like to mention the port I am listening to client on server is different than the port which the server application is using.
How can we achieve this communication?
Please help me. Thank you.