P2P NAT Traversal

Cluster focuses on techniques for establishing peer-to-peer connections through NAT routers and firewalls, including UDP hole punching, STUN, TURN, and challenges with symmetric NAT.

➡️ Stable 0.7x DevOps & Infrastructure
2,346
Comments
20
Years Active
5
Top Authors
#1160
Topic ID

Activity Over Time

2007
6
2008
5
2009
19
2010
54
2011
57
2012
70
2013
101
2014
100
2015
79
2016
85
2017
143
2018
102
2019
132
2020
276
2021
244
2022
205
2023
185
2024
216
2025
238
2026
29

Keywords

e.g P2P UDP ICE NAT IMO DHT IP AFAIK TCP nat punching hole udp turn p2p ipv6 ip peer peers

Sample Comments

raymond_goo Jul 22, 2017 View on HN

Can someone explain how it deals with routers and NAT ? Does it use UDP hole punching ?

ricardobeat Jul 1, 2013 View on HN

Isn't this called "NAT punching", and generally used by games and other sw to establish peer-to-peer connections?

dymk Mar 26, 2019 View on HN

Hole punching through routers. It's hard to generically connect two NAT'd devices directly. It's simpler to route through a central server.

wkat4242 Dec 12, 2024 View on HN

Not really no. If both peers are behind NAT they just can't connect. There's no central server to facilitate hole punching.

ausjke Jun 4, 2017 View on HN

this is truly great, just tested and it traverses NAT without problems(two peers behind NATs), how does it do that?

javitury Jul 28, 2017 View on HN

You can use STUN or TURN (default). But then it's not truly P2P.

api Feb 10, 2019 View on HN

It doesn't work if both ends have NAT.

chasing0entropy Jan 12, 2026 View on HN

Use NAT hole punching if you're advanced, or you could fall back to IP/port filtering

pstuart Jun 20, 2018 View on HN

Couldn't you use it to coordinate NAT punchthrough?

arendn Aug 13, 2012 View on HN

P2P firewall traversal is pretty common these days. Checkout STUN/ICE/TURN.