NAT
[](/)
Guides
Advanced Networking
NAT
On this page
When debugging it is often nice to be able to gather information about NAT type and behavior. ZeroTier does not use STUN (for various reasons), but many STUN implementations contain some helpful code for doing this. It's helpful to use an external utility since it's "out of band" and therefore independent of ZeroTier.
This will perform the basic NAT characterization test from the STUN RFC. The STUN server can be any public STUN server.
It will generate output like:
Guides
Advanced Networking
NAT
On this page
How to characterize NAT[](#stun "Direct link to How to characterize NAT")
When debugging it is often nice to be able to gather information about NAT type and behavior. ZeroTier does not use STUN (for various reasons), but many STUN implementations contain some helpful code for doing this. It's helpful to use an external utility since it's "out of band" and therefore independent of ZeroTier.
sudo apt-get install stunsudo stun stun.callwithus.com 0
This will perform the basic NAT characterization test from the STUN RFC. The STUN server can be any public STUN server.
It will generate output like:
STUN client version 0.96running test number 0Primary: Independent Mapping, Port Dependent Filter, preserves ports, no hairpinReturn value is 0x000017
Updated on: 12/07/2024
Thank you!