Xgamingserver
Home Hytale How to Use Tailscale with Hytale: Fix NAT and Connection Issues

How to Use Tailscale with Hytale: Fix NAT and Connection Issues

Skip the VPN Setup

Get a managed Hytale server with direct connectivity – no VPN needed.

Get Hytale Server Hosting →

Can’t connect to your friend’s Hytale world due to NAT or firewall issues? Tailscale is a free VPN solution that creates peer-to-peer connections between devices, bypassing most network restrictions.

What is Tailscale?

Tailscale is a mesh VPN built on WireGuard that allows devices to connect directly to each other, regardless of network configuration. Key benefits:

  • Bypasses NAT: Works even with CGNAT and strict firewalls
  • Peer-to-peer: Direct connections between devices (no traffic through central servers)
  • Encrypted: All traffic uses WireGuard encryption
  • Free: Personal use is free for up to 100 devices
  • Easy setup: No complex configuration needed

How Tailscale Works with Hytale

Hytale automatically detects Tailscale addresses and includes them in share codes. When both players have Tailscale running:

  1. Tailscale addresses appear as high-priority connection candidates
  2. The Hytale client tries Tailscale addresses first
  3. Direct peer-to-peer connection is established through the Tailscale tunnel

Setting Up Tailscale

Step 1: Create Tailscale Account

  1. Visit tailscale.com
  2. Click “Get Started” or “Log In”
  3. Sign in with Google, Microsoft, GitHub, or email

Step 2: Install Tailscale (All Players)

Everyone who wants to play together needs Tailscale installed.

Windows

  1. Download from tailscale.com/download/windows
  2. Run the installer
  3. Click the Tailscale icon in the system tray
  4. Click “Log in” and sign in with your account

macOS

  1. Download from the Mac App Store or tailscale.com/download/mac
  2. Open Tailscale from Applications
  3. Click “Log in” and sign in

Linux

# Add repository and install
curl -fsSL https://tailscale.com/install.sh | sh

# Start and authenticate
sudo tailscale up

Step 3: Connect Your Network

Once all players are logged in to Tailscale on the same account (or have shared their network), you’ll see each other in the Tailscale admin console.

Tip: For playing with friends, you can either:

  • All use the same Tailscale account (simplest)
  • Share your Tailscale network with their accounts (better for long-term)

Step 4: Generate New Share Code

In Hytale, with Tailscale running:

  1. Open your singleplayer world
  2. Go to Online Play settings
  3. Re-save your settings to generate a new share code
  4. The new code will include Tailscale addresses (100.x.x.x)

Step 5: Friends Join

Have your friends:

  1. Ensure Tailscale is connected
  2. Use the new share code to connect
  3. The connection should establish via Tailscale

Why Tailscale Works When UPnP Fails

Problem Why UPnP Fails Why Tailscale Works
CGNAT No public IP to forward to Uses relay servers to establish direct connection
Strict NAT Router blocks incoming connections Uses NAT traversal techniques
Double NAT UPnP only configures one router Works regardless of NAT layers
Firewall Blocks game ports Uses encrypted tunnel on allowed ports

Troubleshooting Tailscale

Tailscale Address Not in Share Code

  • Ensure Tailscale is connected (check system tray icon)
  • Re-save Online Play settings after connecting Tailscale
  • Restart Hytale if needed

Connection Still Fails

  • Verify both players have Tailscale connected
  • Check that devices are on the same Tailscale network
  • Try pinging your friend’s Tailscale IP: ping 100.x.x.x

Alternative: Direct Server Connection

If you’re running a dedicated server, you can also connect via Tailscale IP directly:

100.x.x.x:5520

Want Simpler Multiplayer?

A dedicated server eliminates all VPN complexity. Just share your server address and play.

Get Hytale Server Hosting →

Your Header Sidebar area is currently empty. Hurry up and add some widgets.