Hytale: fixing "failed to connect to server"
Three causes explain almost every Hytale connection error: a version mismatch after an update, a closed UDP port, or NAT when hosting from the game.
First check that server and client run the same Hytale version. Since Update 6 the game speaks protocol hytale/3, and after every update this is the most common cause of "failed to connect" and "connection closed".
If the versions match, look at the port: Hytale uses UDP 5520, not TCP. And if you host from the game itself, the warning about your network configuration is almost always NAT: your router does not let incoming connections through.
The messages and what they mean
Of the four messages people search for most, three mean something other than they seem.
"Failed to connect to server"
The client cannot reach the server. Usually: wrong address or port, server still starting, or UDP 5520 closed in a firewall or router. On a server that was just updated: version mismatch.
Copy address and port exactly from the panel, wait until the console says "started", check UDP 5520.
"Connection closed"
The connection was made and then dropped. That is a version or protocol mismatch, an expired server authorization, a full server (MaxPlayers) or a kick.
Put client and server on the same version, check MaxPlayers and the console, re-authorize if needed.
"Your network configuration may prevent other players from connecting"
You see this as host when you host from the game and Hytale cannot find a route from outside to your PC. Since Update 6 the game tries STUN and TURN; double NAT (behind a second router or your ISP's CGNAT, for instance) does not work yet.
Enable UPnP or forward UDP 5520 on your router, keep one router in the chain, or get a server on a public IP address.
Server not authorized
A Hytale server has to be linked to a Hytale account. Without valid authorization players cannot log in.
In the server console: /auth login device, then /auth persistence Encrypted so the server does not ask again after a restart.
Checklist
Six steps to a working connection
Top to bottom. Most servers are done at step two.
-
01
Versions match
Compare the version number in the game with the one in the server console. After a Hytale update, update and restart the server first, then the client.
-
02
Address and port
Address and port come straight from the panel. A free subdomain prevents typos; the port goes after it with a colon.
-
03
UDP 5520 open
On a hosted server the port is open at delivery. At home: forward it on the router as UDP, not TCP, and check the PC's firewall.
-
04
Server ready
The server loads its assets first. Connecting before "started" appears in the console gives a failed to connect that resolves itself.
-
05
Authorization and limits
Check that the server is authorized (/auth), that MaxPlayers is not reached and that no password or whitelist is stopping the player.
-
06
Read the logs
The console almost always says why a player was refused. Search for the player's name or the time of the attempt.
Why a hosted server does not have this
Hosting from the game puts your PC behind a router, sometimes behind two. A hosted server sits on a public IP address with the port open: there is no NAT to get through.
- Public IPv4 address and UDP 5520 open at delivery
- Server keeps running when you turn off your PC
- Free subdomain, so players do not have to remember an IP address
- Update and restart from the panel
- DDoS protection on our network
Plans
Delivered right after payment, with the port open and Java 25 ready.
Hytale - 4GB
€9.50 /mo
Oder €114.00 €100.00 /Jahr 12% sparen · 1 Monat gratis
- 4GB RAM
- From 25GB NVMe SSD
- AMD Ryzen/EPYC processors
- 5-10 players recommended
Hytale - 6GB
€14.00 /mo
Oder €168.00 €160.00 /Jahr 5% sparen · 1 Monat gratis
- 6GB RAM
- From 25GB NVMe SSD
- AMD Ryzen/EPYC processors
- 10-20 players recommended
Hytale - 8GB
€18.00 /mo
Oder €216.00 €200.00 /Jahr 7% sparen · 1 Monat gratis
- 8GB RAM
- From 25GB NVMe SSD
- AMD Ryzen/EPYC processors
- 15-30 players recommended
Hytale - 10GB
€24.00 /mo
Oder €288.00 €250.00 /Jahr 13% sparen · 2 Monate gratis
- 10GB RAM
- From 25GB NVMe SSD
- AMD Ryzen/EPYC processors
- 20-40 players recommended
Which size? See the RAM guideline per player count. Server lagging once everyone is in? Then it is time for the best settings.
FAQ
Frequently asked questions about Hytale connections
Stuck? Send us a message or ask in our Discord.
/auth login device and follow the link. Then /auth persistence Encrypted, so the server does not ask for authorization again after a restart.