Remix.run Logo
akerl_ 14 hours ago

The reason that peer-to-peer tools tend not to work well behind NAT is because peers can't initiate inbound connections to you.

So your router gets 1.2.3.4 as an external IP. And it assigns you 192.168.1.10 as an internal IP, and handles NAT for your outbound connections. You start your torrent client and it advertises "hey, I have all these Linux ISOs, and I'm at 1.2.3.4:50000, come connect to me". Peers try to connect to 1.2.3.4:50000, and your router says "who the hell is this".

This is what UPNP and related tools attempt to solve. UPNP works by allowing your computer to say to your router "hey, I'm going to want inbound connections on port 50000, so if you get any, send them to me".

Other methods like STUN/TURN/etc use different techniques to get around the issue.