Answer the question
In order to leave comments, you need to log in
How to organize a P2P connection between two clients using a server?
How to organize a P2P connection of two clients using a server, provided that both clients are behind NAT and have a gray IP. Are there any ways to do this?
Answer the question
In order to leave comments, you need to log in
option 1: NAT-PMP and UPnP IGD - knock into nat and ask to forward the external port to yourself. IMHO such functionality is now in every nat.
option 2: install a vpn service on an external server and connect clients to it. inside vpn there will be a "fully connected" mesh.
option 3: put socks5 proxy on the server. it has a port binding function.
Using a server (VPN) - this will not be a client-client connection, all traffic will go through the server, that is, the connection scheme will be client - server - client
The only option to connect two clients directly to each other is TCP hole punching
Create a virtual network, use hamachi or similar tunneling software
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question