Configure Tailscale clients to use a custom control server

Last validated:

The Tailscale clients let you specify a custom control server URL instead of the default https://controlplane.tailscale.com server. If you are using a self-managed deployment of Headscale as your control plane, use your Headscale instance's URL.

Add a custom control server

Run the following command to authenticate to a custom control server. Replace <URL> with your custom control server URL.

tailscale login --login-server=<URL>

Remove a custom control server

To log out of the custom control server, run:

tailscale logout

If you need to completely reset the locally stored Tailscale state:

  1. Stop tailscaled.

    sudo systemctl stop tailscaled
    
  2. Remove the state file.

    sudo rm /var/lib/tailscale/tailscaled.state
    
  3. Start tailscaled.

    sudo systemctl start tailscaled
    

Removing the tailscaled state file deletes the locally stored Tailscale state for the device. Use this procedure only when logging out doesn't reset the client as needed.