This article covers how to open your singleplayer world to friends, and what to do if someone cannot connect.
Intended Audience: Players who want to play together
without renting a dedicated server.
What You Need: A normal home internet connection.
Hytale sets the connection up for you, and most networks need no setup
at all. A few networks cannot work. Read
Known Limitations for those.
Add each other as friends first. This gives Hytale far
more ways to connect you. See
Why Friends Matter.
Early System: This feature is still maturing. We are
actively improving it, but expect that it won't work flawlessly for
everyone yet.
Share codes contain your IP address. Never post them publicly, paste them in public chats, or show them on stream. Only share codes directly with people you trust.
Contents
- How It Works: an overview of the friend join system
- Why Friends Matter: why you should add each other as friends
- Hosting a World: a step-by-step hosting guide
- Joining a Friend's World: how to use a share code
- Troubleshooting: common issues and fixes
- Alternative Solutions: Tailscale and role reversal
- Known Limitations: the networks we cannot reach
- Technical Details: the share code and the connection method
How It Works
Hytale lets you open your singleplayer world to friends without a dedicated server. When you turn this on, Hytale works out how your friends can reach you and gives you a share code. Send that code to a friend and they can join.
Hytale tries several ways to connect the two of you and uses the best one that works. It always prefers the fastest, most direct route. If your two networks do not allow a direct connection, Hytale will instead relay the traffic to ensure you can still connect, but it adds a little delay.
All of this happens on its own. You do not need to change anything on your router unless Hytale tells you to.
Why Friends Matter
Hytale can only use its best connection methods between players who are friends in Hytale.
- If you are friends: Hytale can use every method it has, including relaying your traffic when nothing else works.
- If you are not friends: Hytale can only use the addresses inside the share code. The join fails if your friend cannot reach one of them directly.
Add each other as friends in Hytale before you share a code. This is the single best thing you can do to make a join succeed.
Parental managed accounts that are unable to use the Friends social features can still play together if you are on the same home network. If you are not on the same network and are experiencing issues, we recommend heading to the Tailscale section.
Hosting a World
- Load into your singleplayer world
- Press ESC to open the pause menu
- Click Online Play
- Toggle Allow Other Players to Join to ON
- (Optional) Set a Password to restrict access
- (Optional) Toggle Include Password in Share Code to embed the password
- Click Save
Hytale then sets up your connection. This takes a few seconds. The Connection section shows one of these results:
Result |
Meaning |
| Friends can join. | Your friends can reach you. Nothing more to do. |
| Friends outside your home need extra setup. | A join can still work, but it depends on your friend's network too. The line below names the cause and the fix. See Friends Outside Your Home Need Extra Setup. |
| Only players on your home network can join. | Hytale could not find a way for anyone outside your home to reach you. See Only Players On Your Home Network Can Join. |
| Your world is not open to friends. | Setup failed. Check your firewall and try again. |
A share code appears when the world is open. Click Copy to Clipboard and send the code to your friends.
The Copy Network Report button copies a diagnostic report. The report contains no IP addresses, so you can paste it in a public support thread.
Joining a Friend's World
- From the main menu, go to Servers
- Click Join via Code
- Paste the share code
- Enter the password if required and not embedded
- Click Connect
Hytale finds the best way to connect you and joins you to the world. This usually takes a few seconds.
Troubleshooting
Start here. On the hosting computer, open Online Play and click Copy Network Report. The report names the exact cause. Copy it and reach out to our Player Support team here for assistance if you get stuck.
Friends Can Join, But My Friend Still Cannot Connect
Symptom: The Online Play screen says friends can join, but your friend gets a connection timeout or failure.
Causes and Fixes:
Cause |
Fix |
| You are not friends in Hytale | Add each other as friends, then generate a new share code. See Why Friends Matter |
| Firewall blocking Hytale | Allow Hytale through Windows Firewall for both private and public networks |
| Antivirus interference | Temporarily disable it, or add Hytale as an exception |
| The network blocks Hytale's traffic | Some school, office and public networks do this. Read Some networks block Hytale entirely |
| Share code expired | Generate a new code. Codes expire. |
Friends Outside Your Home Need Extra Setup
The detail line on the Online Play screen names your cause. Each one has a different fix.
Detail line says |
Fix |
| Your router does not forward ports | Forward the named port on your router, or use Tailscale. See Manual Port Forwarding |
| Your router blocks friends from joining (symmetric NAT) | Forward the named port on your router, or use Tailscale. See Some routers always need the relay |
| Your connection goes through two routers | Forward the named port on both routers, or connect your PC directly to the main router. See Double NAT |
| Your internet provider shares one IP among many homes (CGNAT) | Port forwarding cannot help. Use Tailscale, or ask your provider for a public IP. See How to Check for CGNAT |
| Your router opened a port, but the game found no public IP | Check your internet connection, or use Tailscale |
Many joins still succeed in this state. Try the join first. Only change your router if it fails. Please make sure you understand any changes you are making to your router before making adjustments. Verify before opening any ports and their implications. The steps provided in this guide are specific to Hytale and are safe to proceed.
Only Players On Your Home Network Can Join
Hytale could not find a way for anyone outside your home to reach you. Check these in order:
- Check that your internet connection works
- Allow Hytale through Windows Firewall
- Check that your network does not block Hytale. Some school and office networks do. See Some networks block Hytale entirely
- Use a VPN like Tailscale
Double NAT
Double NAT means your connection passes through two routers. The usual cause is an internet provider box in front of your own router.
Forwarding a port on only one of them does not work. The other router still blocks the traffic. The forward looks correct in the router settings and still does nothing.
Your friends can often still join, because Hytale's other methods need no forwarded port. Try the join before you change anything.
To fix it fully, use one of these:
- Forward the port on both routers. Forward from the outer router to the inner router, then from the inner router to your PC.
- Enable UPnP on both routers
- Set the provider box to bridge mode, sometimes called modem mode. Only one router then does the work.
- Connect your PC directly to the main router
How to Check for CGNAT
Some internet providers share one public address between many homes. This is called Carrier-Grade NAT, or CGNAT. Port forwarding cannot work when your provider does this.
To check, compare two addresses:
- Your router's WAN IP address, shown in your router admin panel
- Your public IP address. Search "what is my IP" in a browser.
If the two do not match, you are behind CGNAT.
For a more definitive check on Windows:
- Open PowerShell
- Run:
tracert -d 8.8.8.8 - Check the first few hops
If the first hop is a public IP, and not 192.168.x.x, 10.x.x.x, or 172.16-31.x.x, you probably have a direct connection. If you see several private ranges before the public addresses, you are behind CGNAT or Double NAT.
Hytale can still connect you through CGNAT. Port forwarding is the only part that cannot work. To get it back, ask your provider for a public IP address.
Manual Port Forwarding
Use this if your router does not support UPnP and you have a direct public IP.
- Read the port from the Online Play screen. The detail line names it.
- Log into your router admin panel
- Find the Port Forwarding settings
- Create a rule that forwards that UDP port to your PC's local IP
- Save your Online Play settings again
IPv6 Connectivity
The share code includes IPv6 addresses when they are available. Your friend can connect straight to an IPv6 address if both of you have working IPv6 from your provider. IPv6 has no NAT, so no port forwarding is needed.
Alternative Solutions
Try Having Your Friend Host
The simplest fix when you cannot host is to swap roles. Ask your friend to create the world and invite you. Network setups differ, so one player can often host when the other cannot.
To move a world you already have:
- Find your world save in
%appdata%\Hytale\saves\ - Send the world folder to your friend
- Your friend imports it and hosts it
Using Tailscale
Tailscale is a free app that creates a private connection between your computers. It works around most router and firewall problems that Hytale cannot solve on its own.
Setup: Hytale x Tailscale Setup
Once both players have installed Tailscale and signed in:
- Save your Online Play settings again to generate a new share code
- Share the new code with your friend
Hytale finds your Tailscale connection on its own and adds it to the code. It uses Tailscale only when a normal connection does not work, because traffic through Tailscale is a little slower. Tailscale is a reliable backup, not a faster route.
Why we recommend it:
- Works through most router setups that block a normal join
- Your connection stays encrypted
- Free for personal use
Dedicated Server
Use a dedicated server for a persistent world, or for more than a few friends. A dedicated server gives you:
- Better performance. The server does not also render the game.
- Uptime when you are offline
- More configuration options
- Reliable connectivity with no router problems
Option 1: Rent from a Hosting Provider
The easiest solution is to rent a server from a provider we have "Launch Verified":
These providers handle the networking, the hardware, and the maintenance. The servers are online 24/7 and reachable from anywhere. You need no UPnP and no port forwarding. Most offer a one-click Hytale install and automatic updates.
Option 2: Self-Host
If you prefer running your own hardware, see the Server Manual for setup instructions.
Known Limitations
Friend joins cannot cover every network. These are the cases we know about.
Some networks block Hytale entirely
A few networks block the kind of traffic Hytale needs. When that happens, no connection method works and no setting on your side can fix it. Some workplace networks, school networks, and public Wi-Fi networks do this.
To test for it, join from a different network, such as a phone hotspot. A join that works on the hotspot and fails at home or at work points to a network block.
To fix it, use a network that allows Hytale through. If you manage the network yourself, ensure your firewall allows outbound UDP traffic on port 3478 so Hytale can coordinate friend connections.
Double NAT limits port forwarding
Port forwarding only works when you set it up on both routers. Hytale cannot do this for you, because it can only reach the inner one. Read Double NAT for the full fix.
Your friends can usually still join through Double NAT by other means.
Port forwarding does not work behind CGNAT
Your provider shares one public IP among many homes. No port you forward is reachable from outside. This is a limit of the provider network, not of Hytale.
Your friends can usually still join. To get port forwarding back, ask your provider for a public IP.
Some routers always need the relay
A few routers handle connections in a way that blocks every direct route to you. This is called symmetric NAT.
Hytale spots this and relays your traffic instead. Your friends can still join, and you should expect slightly higher ping. To get a direct connection back, forward the port on your router.
Players who are not friends have fewer options
Hytale's best connection methods are only available between friends. A code shared with a stranger falls back to the addresses in the code alone. Read Why Friends Matter.
The network report cannot tell you how a friend connected
The report describes the host's own network. It cannot yet say how each friend connected. Use the in-game ping as a rough guide. A friend on a relayed connection usually shows higher ping than one on a direct connection.
Technical Details
Share Code Format
The share code is a Base64-encoded, compressed JSON structure containing:
{
"HostName": "PlayerName",
"HostUuid": "...",
"ServerName": "World Name",
"Password": "optional",
"ExpiresAt": "2026-01-09T01:50:03Z",
"Ice": { "SessionId": "..." },
"Candidates": [
{"Type": "Host", "Address": "192.168.1.100", "Port": 52102, "Priority": 1000},
{"Type": "UPnP", "Address": "82.12.145.33", "Port": 52102, "Priority": 900},
{"Type": "ServerReflexive", "Address": "82.12.145.33", "Port": 52102, "Priority": 700},
...
]
}
Hytale connects players using ICE (Interactive Connectivity Establishment), the same standard that video calls use. It is what lets the two games work out a route between themselves rather than relying on a fixed address.
The Ice block marks the code as ICE-capable. The joining game opens a signaling session instead of trying the addresses one by one.
Candidate types:
- Host: a direct address on this machine. Local network, IPv6, or VPN.
- UPnP: a public address that the router forwarded.
- ServerReflexive: a public address that a STUN server observed.
- PeerReflexive: an address discovered during the connectivity checks.
- Relay: an address on a Hytale relay server, used when no direct route works.
A code carries at most 16 candidates. Addresses that work from outside your home are kept first.
Connection Method
ICE tests every pair of addresses at once and picks the best pair that answers. Local preference decides which of your own addresses is preferred:
Interface |
Preference |
| Ethernet or Wi-Fi | Highest |
| Unknown | High |
| Carrier-grade NAT range, which includes Tailscale | Medium |
| VPN overlay, such as Hamachi or Radmin | Low |
| IPv6 transition tunnel, such as Teredo or 6to4 | Lowest |
A join that cannot use ICE falls back to the addresses in the share code. The game tries them in priority order, highest first.
Security Notes
- Share codes contain your IP addresses. Only share them with people you trust.
- Codes expire. See
ExpiresAtin the code. - A password adds protection, but the code itself still reveals network information.
- When Hytale relays your traffic, it stays encrypted. We cannot read your session.
- The network report contains no IP addresses. It is safe to paste in public.