Skip to main content

ZeroTier

1. Steps to Use​

1.1 Log in to ZeroTier Website​

  1. Go to the ZeroTier website and log in with an existing account (e.g., Google account).

  2. On the first login, you can create a network. Note that network names cannot contain punctuation or spaces.

    KVM

1.2 Download and Install ZeroTier Client​

  1. On the website, click Download for Windows (choose the correct version for your OS; Windows is used as an example).

    KVM

  2. Once downloaded, run the installer and complete installation.

    KVM

  3. After installation, return to the ZeroTier web console. On the prompt screen, click Skip Initial Setup to enter the network management page.

    KVM

1.3 Add Windows Host to ZeroTier Network​

  1. Open the installed ZeroTier client (usually located in the system tray; right-click the icon for options).

    KVM

  2. Paste the previously created Network ID into the client and click Join.

    KVM

  3. Return to the ZeroTier web console. Refresh to see that the Windows host has joined the network.

    KVM

1.4 Add PicoKVM to ZeroTier Network​

  1. On the PicoKVM management interface, go to Settings → Access.
  2. Paste the same Network ID into the input box and save.

    KVM

  3. Refresh the page to see PicoKVM listed in the ZeroTier management console.

    KVM

1.5 Authorize Devices to Join the Network​

  1. In the ZeroTier web console, check both the Windows host and PicoKVM devices.
  2. Click Auth to authorize them.

    KVM

  3. Once authorized, PicoKVM will display its assigned ZeroTier virtual IP address.

1.6 Access PicoKVM​

  1. Copy the IP address assigned to PicoKVM.

    KVM

  2. Make sure the proxy is disabled, then enter the IP address in a browser to directly access PicoKVM.

For more ZeroTier tutorials, visit: https://docs.zerotier.com/quickstart/

2. Self-Hosted Server​

When using the official ZeroTier public root servers for remote access, issues such as high latency, stuttering, or occasional disconnections may occur. To achieve a more stable, reliable, and controllable networking experience, it is recommended to deploy a self-hosted ZeroTier server.

The test environment described in this document was deployed and validated on Tencent Cloud with Ubuntu 22.04. Other cloud service providers have not been individually tested. If you are using a different cloud platform, please follow the configuration steps in this document and make appropriate adjustments according to your actual network conditions and operating system environment.

Recommended cloud platforms are as follows:

  • Domestic cloud providers: Alibaba Cloud, Tencent Cloud

  • Overseas cloud providers: Oracle Cloud, Google Cloud, Amazon Web Services (AWS), Microsoft Azure

2.1 Server-Side Configuration​

  1. Install Docker by referring to the following guide:Tencent Cloud Ubuntu 22.04 Docker Setup
  2. To accelerate Docker image pulls, configure the Tencent Cloud Docker registry mirror. Edit the /etc/docker/daemon.json file:
    vim /etc/docker/daemon.json
  3. Press i to enter insert mode, add the following content, then save and exit:
    {
    "registry-mirrors": [
    "https://mirror.ccs.tencentyun.com"
    ]
    }
  4. To avoid failures when pulling resources from GitHub, you may configure DNS mappings for GitHub-related domains on the server:
    sudo tee -a /etc/hosts <<'EOF'
    140.82.112.4 github.com
    185.199.108.133 raw.githubusercontent.com
    EOF
    • Result:

  5. Clone the ZeroTier root server (Planet Server) source code:
    git clone https://github.com/xubiaolin/docker-zerotier-planet.git
    cd docker-zerotier-planet
    • Result:

  6. Create and deploy the container:
    ./deploy.sh
    TIP

    Enter 1 to install, then follow the prompts to configure the required ports.

    • Result:

  7. After installation, the following prompts will appear:
    • Open the required firewall ports:

    • Access the management interface at http://Public-IP:3443,Log in using the default credentials admin / password.You will be prompted to change the default password upon first login.

  8. Configure the ZeroTier network:
    • Add network:

    • Enter the network name (Create network):

    • After successful creation, record the Network ID:

    • Configure the network address range and confirm (Submit):

2.2 Client-Side Configuration​

2.2.1 Luckfox PicoKVM Configuration​

  1. Download the planet file as instructed:

  2. Copy the downloaded planet file to /var/lib/zerotier-one, replacing the default official server configuration:
    scp planet root@192.168.xxx.xxx
    TIP

    Username: root
    Password: luckfox

  3. Open the PicoKVM management interface, navigate to Settings → Access, paste the same Network ID into the input field, and click Join.

  4. In the ZeroTier web management console, authorize the Linux host device by checking it.After refreshing the page, once authorization is complete, the PicoKVM device will display the assigned ZeroTier virtual IP address.

2.2.2 Linux Environment​

  1. Download the planet file as instructed:

  2. Install ZeroTier by following the official installation method:
    curl -s https://install.zerotier.com | sudo bash
  3. Copy the downloaded planet file to /var/lib/zerotier-one, replacing the default official server configuration:
    sudo cp planet /var/lib/zerotier-one/
  4. Reboot the system and join the network:
    sudo zerotier-cli join 0e7f6e53185437fe
  5. In the ZeroTier web management console, authorize the Linux host device.After refreshing the page and completing authorization, the PicoKVM device will display its assigned ZeroTier virtual IP address.

  6. Reboot the computer and connect to the PicoKVM using its assigned IP address.

2.2.3 Windows Environment​

  1. Windows Environment

  2. On Windows, open Command Prompt (cmd), enter services.msc, and press Enter.Locate the ZeroTier service in the service list.

  3. Right-click the service and select Properties.In the properties window, view and record the installation path.

  4. Copy the downloaded planet file to the ZeroTier installation directory found in step 3, replacing the default official server planet file.
  5. Reboot the computer and connect to the PicoKVM using its IP address.

FAQ​

  1. Completely removing ZeroTier identity on Linux (resetting the node)
  • Stop the zerotier-one service:
    sudo systemctl stop zerotier-one
  • Remove configuration and identity data:
    sudo rm -rf /var/lib/zerotier-one
  • Restart the service:
    sudo systemctl start zerotier-one
  • Join a new network:
    sudo zerotier-cli join <新的网络ID>