Hello,
How can I connect two clients connected to TCP server so they will be able to send packets to each other (they don't have public IP)?
Hello,
How can I connect two clients connected to TCP server so they will be able to send packets to each other (they don't have public IP)?
There are many ways of doing this and it is implemented in many popular applications like google talk, skype etc.
Create a server application that can take in the packet from client 1 and forward it to client 2 and vice versa.
Both client 1 and client 2 connect to the server and the server will provide IP address of client 1 to client 2 or vice versa. This is done in some peer to peer softwares.
Provide more details like what is the programming language, exact scenario etc so that we can help you better.