I
I
iloyd2019-01-13 05:59:16
Computer networks
iloyd, 2019-01-13 05:59:16

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

4 answer(s)
P
pfg21, 2019-01-13
@pfg21

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.

@
@river, 2019-01-14
_

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

M
Maxim Maxim, 2019-01-13
@maksky

Create a virtual network, use hamachi or similar tunneling software

J
jj1981ua, 2021-03-17
@jj1981ua

https://brodilla.com/ru/DON-s-FTP
download and transfer what you want p2p

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question