Understanding Hytale server ports is essential for hosting a server that players can connect to. This guide explains the different ports, how to configure them, and troubleshoot common networking issues.
Understanding Server Ports
Ports are like numbered doors on your computer. When you host a server, you open specific doors so players can connect. Hytale uses two main ports:
Game Port (Default: 5520)
The game port is the primary connection point for players. When someone enters your server address, their game client connects through this port.
- Default: 5520
- Protocol: UDP
- Required: Yes, players cannot connect without it
Query Port (Default: 5521)
The query port handles status requests from server lists and monitoring tools. It reports your server's online status, player count, and other information.
- Default: 5521 (game port + 1)
- Nitrado WebServer: Uses game port + 3 (e.g., 5523 if game port is 5520)
- Protocol: UDP
- Required: No, but recommended for server list visibility
Setting Up Port Forwarding
If you're hosting from home, you need to configure your router to forward traffic to your server. The exact steps vary by router brand, but the general process is:
- Find your router's admin page — Usually at 192.168.0.1 or 192.168.1.1
- Log in with your router credentials
- Navigate to port forwarding — Often under "Advanced," "NAT," or "Gaming"
- Create a new rule with these settings:
- Service name: Hytale Server
- External port: 5520
- Internal port: 5520
- Protocol: UDP
- Internal IP: Your computer's local IP address
- Repeat for the query port (5521) if you want server list integration
- Save and apply your changes
Using Custom Ports
You can run your server on non-default ports. Common reasons include:
- Running multiple servers on one machine
- ISP blocking default gaming ports
- Security through obscurity (minor benefit)
When using a custom port, players must include it in the server address:
play.yourserver.com:25565If your server uses the default port (5520), players can omit the port number.
Firewall Configuration
Your computer's firewall may block incoming connections even after port forwarding. You'll need to create firewall rules to allow Hytale server traffic.
Windows Firewall
- Open Windows Defender Firewall with Advanced Security
- Click "Inbound Rules" then "New Rule"
- Select "Port" and click Next
- Choose "UDP" and enter "5520, 5521"
- Allow the connection
- Apply to all profiles (Domain, Private, Public)
- Name it "Hytale Server"
Linux (iptables)
sudo iptables -A INPUT -p udp --dport 5520 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 5521 -j ACCEPTTroubleshooting
Players can't connect
- Verify port forwarding is correctly configured
- Check that your firewall allows the ports
- Confirm your server is actually running
- Test with a port checker tool to see if your port is open externally
Server not showing on server lists
- Ensure the query port (5521) is forwarded
- Check that query is enabled in your server configuration
- Some ISPs block certain UDP ports — try a custom port
Connection times out
- Your external IP may have changed (common with home internet)
- Router may have reset and lost port forwarding rules
- Server process may have crashed