Skip to main content

Tailscale: Secure Remote Access to Your Home Network

Overview​

Tailscale creates a secure, encrypted private network between your devices, regardless of their physical location. It uses WireGuard and allows you to remotely access servers, computers, and self-hosted applications without exposing them to the public internet.

Benefits​

  • No port forwarding required.
  • No public IP address required.
  • No domain name required.
  • No Cloudflare Tunnel required.
  • Encrypted communication between devices.
  • Works behind most routers and firewalls.
  • Supports Linux, Windows, macOS, Android, and iOS.
  • Free personal plan available.

1. Create a Tailscale Account​

Visit https://tailscale.com and create an account.

2. Install Tailscale on Linux​

Run the following command on your Linux server:

curl -fsSL https://tailscale.com/install.sh | sh

Start Tailscale:

sudo tailscale up

Open the authentication URL displayed in your terminal and sign into your Tailscale account.

3. Install Tailscale on Other Devices​

Visit the official download page:

https://tailscale.com/download

Install Tailscale on any device you want to connect to your private network.

Sign into the same Tailscale account on each device.

4. Find Your Server's IP Address​

Run the following command on your server:

tailscale ip -4

Example output:

100.85.42.10

This is your server's private Tailscale IP address.

5. Verify Connected Devices​

Run:

tailscale status

This displays the devices connected to your Tailscale network and their respective IP addresses.

From another device on your Tailscale network, test connectivity to the server:

tailscale ping 100.85.42.10

6. Access Self-Hosted Applications​

Once connected, you can access applications using the server's Tailscale IP address and the application's port.

ApplicationExample Address
Forgejohttp://100.85.42.10:3000
Instagram Screensaverhttp://100.85.42.10:18473
Voiceboxhttp://100.85.42.10:17493
SSHssh agent@100.85.42.10

Replace the example IP address and ports with your actual configuration.

Applications must be listening on a reachable network interface, and your firewall must permit the connection. Applications bound exclusively to 127.0.0.1 will not be directly accessible.

7. Enable Automatic Startup​

On a Linux server that uses systemd, enable Tailscale to start at boot:

sudo systemctl enable --now tailscaled

Verify the service:

systemctl status tailscaled

8. Manage Your Network​

Access the Tailscale administration console:

https://login.tailscale.com/admin/machines

From here, you can:

  • View connected devices.
  • Rename devices.
  • Remove devices.
  • Manage device authorization.
  • Configure access controls.
  • Manage subnet routers and exit nodes.

9. Additional Features​

MagicDNS​

MagicDNS allows you to access devices using their hostnames instead of remembering IP addresses.

Example:

http://homeserver:3000

Subnet Router​

A subnet router allows you to access devices on your local network without installing Tailscale on every device.

This is useful for:

  • Network printers.
  • Security cameras.
  • Network-attached storage.
  • Router administration pages.
  • Other network-connected equipment.

Exit Node​

An exit node allows you to route your internet traffic through another Tailscale-connected device.

For example, you can route your laptop's internet traffic through your home server while traveling.

Access Controls​

Access controls allow you to restrict which users and devices can communicate with specific devices, applications, and ports.

10. Useful Commands​

CommandDescription
sudo tailscale upConnect to Tailscale
sudo tailscale downDisconnect from Tailscale
tailscale statusDisplay connected devices
tailscale ip -4Display your IPv4 address
tailscale ping <hostname>Test device connectivity
tailscale netcheckDiagnose network connectivity
sudo tailscale logoutSign out of Tailscale
tailscale versionDisplay installed version

Tailscale vs. Cloudflare Tunnel​

FeatureTailscaleCloudflare Tunnel
Private remote accessYesYes
Public website hostingOptional via FunnelYes
Port forwarding requiredNoNo
Domain required for basic accessNoTypically for permanent public URLs
Client installationTypically requiredNot required for public websites
SSH accessYesYes
Local network accessYes, via subnet routerSupported with additional configuration

Tailscale is particularly useful for accessing private infrastructure, while Cloudflare Tunnel is useful for exposing websites and applications to external users.

Official Resources​