Java: Using server to create P2P between two clients
问题 I am experimenting with a file transfer program in Java and I wanted to create a server that would handle creating P2P connection between two clients. Don't know how that should work, exchanging sockets? I don't want to exchange IP address... Seen some questions similar (ev. Connecting two clients via server java) but I have no idea how to achieve that. Thanks for your time 回答1: It sounds like you are looking for nat traversal techniques. There is no single solution because there are many