i have to develop a distributed system that consists in having a chat session by TCP sockets with someone from it's IP address, connected to a server that lists all ips connected for the last 3 minutes to it. alongside with this main feature the app must make requests to every ip to get their name and current state, active, busy or stopped. after sending that request over UDP sockets and, in the other side they must send a reply of that request also over UDP.
EDIT - basically, the application must contact a server that stores the ips that connected to the server for the last minutes. then it must retrieve that ip addresses and contact each one to get it's name and status.
unfortunately i only receive my reply to my request but the other colleagues receive my request.
how can i fix this situation?