NAT Hole Punching
Achieve a P2P direct connection under a private IP (NAT hole punching).
Step 1 — enable QUIC (highly advisable)
--p2p-udp-address=0.0.0.0:3610
--feature-set-enable=quicStep 2 — advertise your public address (advisable)
--p2p-external-ip=<your-public-ip>Docker
Add port mappings (required)
Optionally use network_mode: host
network_mode: hostKubernetes
Expose both TCP and UDP in your service (required)
Optionally use hostNetwork: true
hostNetwork: trueLast updated
Was this helpful?

