开发者

Connect two users using server

How can I connect two clients connected to TCP server so they will be able to send packets to each other (they don'开发者_如何学Pythont have public IP)?


There are many ways of doing this and it is implemented in many popular applications like google talk, skype etc.

Method 1

Create a server application that can take in the packet from client 1 and forward it to client 2 and vice versa.

Method 2

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜