Connecting Private IPs

A friend of mine told me that there is a way to connect two private IP addresses without using a proxy server. The idea was that both computers are connected to a public server and some, like the server joined private connections and will not use more bandwidth.

It's true? What is the name of this method?

+3
source share
5 answers

There is a technique called " Hole Hole" that works well with NAT "Cone" (Cone is a technical family router). This is not a 100% method, today it works well with UDP on about 80% of the router.

Hole Punching: STUN ( wikipedia)

+2

VIP ( IP-). , VIP , , 2 IP-. VIP. , .

0

( NAT), - VPN. .

0

, , - ssh-. , , userA 10.1.2.3/24 mysql userB 192.168.0.3/24. , A .

userB :

ssh -R localhost:13306:localhost:3306 username@serverA

userA :

ssh -L 3306:localhost:13306 username@serverA

userA , mysql localhost, cxn serverA mysql, localhost .

(, , , =))

0

Source: https://habr.com/ru/post/1696682/


All Articles