Updated October 15, 2026: If Hytale says it failed to connect to a server, first check whether you are joining a friend's shared world or a dedicated server. The right fix depends on who hosts the world and what the connection screen says. Update 7 also fixed several joining problems, so restart the launcher and make sure both sides are on the current release before changing network settings.
Hytale failed to connect to server: what the error means
The “An unexpected error occurred” or “The host may be offline or behind a strict firewall” message does not identify one certain cause. The host may have closed the world, a share code may have expired, a network may block the connection, or a dedicated server may be offline or misconfigured. Use the steps below to narrow it down instead of immediately changing your router.
How to fix failed to connect to the server in Hytale
- Restart Hytale and update both sides. Hytale's Update 7 hotfixes addressed a Windows-hosted world timing out during the join, reconnecting after an IP change, and being dropped into offline mode after switching avatar presets. The October 14 version 0.7.2 hotfix also fixed a world crash that disconnected everyone.
- Check that the host is online. If this is a friend's world, ask them to load it and make sure Allow Other Players to Join is on under Esc → Online Play. If it is a dedicated server, ask the administrator whether the server is running.
- Try a fresh join. For a friend's world, add each other as Hytale friends, have the host generate a new share code, then use Servers → Join via Code. Share codes expire; do not post one publicly because it can contain the host's IP address.
If those checks fail, follow the section that matches your situation. Hytale's Joining Friends guide says friends can use more connection methods, including a relay when a direct route is unavailable. Most friend joins do not require manual port forwarding.
If you cannot join a friend's Hytale world
Ask the host to open their world, press Esc → Online Play, and read the Connection result. That message is more useful than the generic error on the joining player's screen:
- “Friends can join”: Add each other as in-game friends, create a new share code, and try again. Check that Hytale is allowed through the host's firewall. If the code has expired, a new one is required.
- “Friends outside your home need extra setup”: Try joining before changing router settings; Hytale says many joins still work in this state. If it fails, follow the specific cause shown on the Online Play screen and the official guide.
- “Only players on your home network can join” or “Your world is not open to friends”: Check the host's internet connection and allow Hytale through their firewall. Try a different network, such as a phone hotspot, to see whether the usual network blocks Hytale.
The host can also select Copy Network Report on the Online Play screen. Hytale says this report names the connection problem and contains no IP addresses, making it suitable to share with Player Support. Do not publish the share code itself: Hytale says share codes can contain IP addresses.
What if the host is offline or behind a strict firewall?
For a friend's shared world, start with the Online Play result, an in-game friendship, a new share code, and a firewall allowance for Hytale. Hytale can relay friend joins when a direct route fails. Manual port forwarding is only worth considering if the host's Online Play screen identifies a port problem and the join still fails. If the host is behind carrier-grade NAT, ordinary port forwarding will not help; Hytale's guide explains alternatives.
If you cannot join a dedicated Hytale server
First ask whether other players can join. If nobody can, the administrator should check that the server is running, has finished starting, and is authenticated. Hytale's Server Manual says a dedicated server must be authenticated before it can accept player connections.
If the server is self-hosted, its administrator should verify the address and port, and that the firewall and router allow UDP traffic on the server's configured port. Hytale uses QUIC over UDP, not TCP. The default dedicated-server port is 5520 UDP, but the host may have changed it. These are host-side checks; players joining someone else's server should contact its administrator rather than change their own router.
If this appears on a dedicated server you run, check its console and authentication state. Hytale's official setup uses /auth login device in the server console and requires the administrator to complete the device sign-in shown there. The server can accept connections after authentication succeeds. If you are only a player, send the exact error to the server administrator. The message alone does not prove that your own internet connection is at fault.
If you connect but the world loads slowly
That is a different symptom from a failed join. Hytale has a separate slow connection and world-not-loading guide for some Windows network-adapter issues. Follow its checks only if the server connection succeeds but the world does not load or respond normally.
What changed since Hytale's January launch?
The original version of this guide suggested starting the launcher while disconnected from the internet and then reconnecting. That launch-period workaround is no longer the best first step. Hytale's Chapter I update added clearer Online Play connection results and a Network Report, while Update 7's hotfixes addressed several specific joining and reconnection bugs. Diagnose the current error using those tools before changing your network setup.
Hytale connection error FAQ
Do I need to forward ports to join a friend?
Usually, no. Hytale tries multiple connection methods for in-game friends, including a relay. The host should follow the specific Online Play result if the join fails.
Share codes expire. Have the host save their Online Play settings and send a fresh code privately. Add each other as Hytale friends first to give the game more ways to connect you.
What if I cannot join any Hytale server?
Restart and update the game, test another network, and note the exact error. If friend joins fail, ask a host for the Online Play Network Report. If a dedicated server fails, ask its administrator whether other players can join. These checks help distinguish a problem with your connection from one with the host.
For more help with the game, visit our Hytale hub.