What is Nostr?
dave /
npub1rw3…jm6v
2023-06-28 19:05:50

dave on Nostr: Went down the NAT hole punching rabbit hole far enough to write a basic STUN client ...

Went down the NAT hole punching rabbit hole far enough to write a basic STUN client before running into why most hole punching literature is about UDP and not TCP: both peers must simultaneously open connections to each other in order for (most) NATs to behave properly. STUN will let you know your socket's public address and port, but it won't help you rendezvous with another peer. Learned a lot, but somewhat of a dead end. This page has probably the best and most understandable explanations of various hole punching scenarios: https://bford.info/pub/net/p2pnat/
Author Public Key
npub1rw3ux8q2c2spvxus80n5az5nhty728mgkgd2tnz78dhez58fj03sl6jm6v