ZeroTier is designed to work in as many environments as possible. We provide multiple layers of fallback so that some level of connectivity can be achieved through even the most restrictive or broken physical networks. But "some level of connectivity" does not mean "optimal connectivity." This page details the physical network configuration that we recommend for best results.

If your network configuration is hostile to peer to peer network connectivity, most of your ZeroTier traffic will end up being relayed indirectly. This slows things down considerably. Other settings such as "local isolation" can also interfere significantly with performance by forcing local traffic to traverse the Internet.


Make sure all of your nodes are updated to the latest release.

Recommended Local Network and Internet Gateway Configuration

These guidelines are consistent with the vast majority of typical deployments using commodity gateways and access points.

What ports does ZeroTier use?

It listens on three 3 UDP ports:

That means your peers could be listening on any port. To talk with them directly, you need to be able send to any port.

Should I forward any ports in my router?

No. Let ZeroTier and UPnP, NAT-PMP, and IPv6 handle it automatically.

System Firewalls and Security Software

If your computer has a local firewall, allow traffic to and from UDP port 9993. In some cases (such as the Windows built-in firewall) ZeroTier does this automatically if installed with one of our installation packages. In other cases such as Linux iptables we leave this to the user since there are too many variations and we do not want to accidentally corrupt user settings by trying to modify them manually.

Some systems may also have security software present that only allows select applications to communicate with the Internet. In that case you may need to locate the ZeroTier service binary and authorize it.

Finally, it's important to note that ZeroTier One's virtual network ports appear to your system just like normal LAN or WiFi ports and are subject to local firewall rules. If everything appears okay but you can't reach a local service like SSH or HTTP, check local firewall rules to ensure that desired traffic over the virtual network itself is allowed.


Is My Device Relaying?


zerotier-cli info -j

is "tcpFallbackActive" true? TCP fallback is the slowest form of relaying. It's a last resort.


zerotier-cli listpeers 

Look for the Node ID <ztaddr> of the device you're trying to communicate with and see if it has an IP address listed under <path>. If there's no IP address, it's relaying.

There's a second form of relaying where packets bounce off ZeroTier's infrastructure. This is better than TCP relaying, but can still be subject to packet loss and high latency.


zerotier-cli peers

Is an easier to read version of listpeers . It is available in zerotier versions 1.4 and up.