ok.
I have clients that connect to a server, i need the server to some how get the clients ip address so that i can pass them to other clients so i can allow direct connections of clients.
For example, clientA connects to the server and clientB also connects to the server. clientA tells the server that he wants to send a file to clientB. So the server needs to do something like GetIpFromSocket(clientAsocket) and then send that to clientB so that both clients can achieve a direct connection. Any help on this matter will be apreciated.

thanks in advance.