How to Install Headscale on Windows 10

Headscale is a self-hosted implementation of the Tailscale control plane, intended to be deployed on your own servers. With Headscale, you can create your own private Wireguard network and easily connect to it from any device.

Here's how to install Headscale on Windows 10:

Prerequisites

Before we begin, make sure you have the following prerequisites installed:

Installation Steps

  1. Open PowerShell and clone the Headscale repository from GitHub using the following command:
git clone https://github.com/juanfont/headscale.git
  1. Change the working directory to the Headscale folder using the following command:
cd headscale
  1. Install the required Go packages by running the following command:
go mod tidy
  1. Build the Headscale executable by executing the following command:
go build
  1. Next, we will install the Headscale service. To do this, open an Ubuntu terminal by running the command wsl in PowerShell. This will open the shell in the Ubuntu environment.

  2. Change to the headscale directory using the following command:

cd /mnt/c/Users/UserName/Downloads/headscale

Note: Replace "UserName" with your actual Windows username.

  1. Run the following command to install the Headscale service:
sudo ./headscale install
  1. Once the installation is complete, start the Headscale service using the following command:
sudo service headscale start
  1. Verify that the service is running using the following command:
sudo service headscale status

If the service is running, you should see a message indicating that it is "active (running)."

Conclusion

That's it! You've successfully installed Headscale on Windows 10. Now you can configure your private network and start connecting devices to it.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!