# ZeroTier

ZeroTier is a network service used to provide virtual private or public LAN solutions.

# Client

# Windows

  • Download the Windows installer for ZeroTier and launch the installer

MSI Installer (x86/x64)

  • Once installed, go to your system tray and locate ZeroTier. Right-click on the icon > Join New Network...

Opening ZeroTier
Opening ZeroTier

  • Enter the unique 16-digit network ID set up by you or provided by the administrator into the box and click Join. The network should show up in the ZeroTier UI
    • Private networks will not show up on your client until it is approved. Manage your network or contact the network administrator

Connecting to a network
Connecting to a network

  • Right-click on the ZeroTier UI icon. Then, hover over the network you wish to disconnect from > Disconnect

Leaving a network
Leaving a network

  • Open Control Panel and navigate to Programs > Programs & Features > Uninstall a program
  • Select ZeroTier from the program list and click Uninstall. Follow the on-screen instructions to remove ZeroTier

Uninstalling ZeroTier
Uninstalling ZeroTier

# Arch

sudo pacman -S zerotier-one

Installing ZeroTier using terminal
Installing ZeroTier using terminal

  • Start the zerotier-one service:
    • You may need to start it in order to connect to a network
sudo systemctl start zerotier-one
  • Alternatively, you can choose to have the service run on system startup:
sudo systemctl enable zerotier-one

Enabling the ZeroTier service
Enabling the ZeroTier service

  • Connect to a ZeroTier network using terminal, replacing <network_ID> with the unique 16-digit network ID set up by you or provided by the administrator
sudo zerotier-cli join <network_ID>
  • Check that you are connected to a network. If successful, the network will show up
    • Private networks will not show up on your client until it is approved. Manage your network or contact the network administrator
sudo zerotier-cli listnetworks

Connecting to a Network
Connecting to a Network

  • Leave a ZeroTier network using terminal, replacing <network_ID> with the unique 16-digit network ID you wish to disconnect from
sudo zerotier-cli leave <network_ID>

Leaving a Network
Leaving a Network

  • Uninstall the Arch package for Zerotier using pacman:
sudo pacman -R zerotier-one

# Debian

  • Download ZeroTier using the SSL-based install script:
curl -s https://install.zerotier.com | sudo bash
  • Start the zerotier-one service:
    • You may need to start it in order to connect to a network
sudo systemctl start zerotier-one
  • Alternatively, you can choose to have the service run on system startup:
sudo systemctl enable zerotier-one
  • Connect to a ZeroTier network using terminal, replacing <network_ID> with the unique 16-digit network ID set up by you or provided by the administrator
sudo zerotier-cli join <network_ID>
  • Check that you are connected to a network. If successful, the network will show up
    • Private networks will not show up on your client until it is approved. Manage your network or contact the network administrator
sudo zerotier-cli listnetworks
  • Leave a ZeroTier network using terminal, replacing <network_ID> with the unique 16-digit network ID you wish to disconnect from
sudo zerotier-cli leave <network_ID>
  • Uninstall the package for Zerotier using apt:
sudo apt remove zerotier-one

# Server

ZeroTier can be used to host various services over their network, such as a multiplayer game over LAN or a web server. This section details additional information that may be useful for hosting.

# Windows

In Windows, connected networks are categorized by Private or Public to determine firewall rules to use. If your ZeroTier interface shows up as a Public network, you may need to set it to Private to allow client connections.

  • Launch a Windows Powershell window as Administrator
  • Locate the Name for your ZeroTier network adapter using Get-NetConnectionProfile. You should see ZeroTier One [xxxxxxxxxxxxxxxx] listed under Interface Alias

Checking ZeroTier's network adapter
Checking ZeroTier's network adapter

  • Set the ZeroTier network interface to Private, replacing <interface_name> with the name of your network interface:
Set-NetConnectionProfile -Name "<interface_name>" -NetworkCategory Private

Setting ZeroTier's network adapter
Setting ZeroTier's network adapter

In Windows, the built-in firewall blocks pings to your host by default, preventing clients from pinging your server.

Enabling these firewall rules typically isn't required by your host. However, if you encounter problems with inbound connections, it may help for troubleshooting.

Allowing pings to your host
Allowing pings to your host