Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting private IPs

Tags:

ip-address

tcp

A friend of mine told me there was a way to connect two private IPs without using a proxy server. The idea was that both computers connected to a public server and some how the server joined the private connections and won't use any more bandwidth.

Is this true? How's this technique named?

like image 502
Greg Roberts Avatar asked Dec 29 '25 05:12

Greg Roberts


1 Answers

There is a technique called "Hole Punching" that works well with "Cone" NAT (Cone is a technical familly of router). That's not an 100% sure technique, today, it works well with UDP on about 80% of the router.

There is some implementations of library to realize Hole Punching: STUN (wikipedia)

like image 178
Steve Gury Avatar answered Dec 30 '25 23:12

Steve Gury



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!