Getting your Hytale server accessible to players requires proper network configuration. This guide covers everything from basic port forwarding to troubleshooting connection issues.
Hytale Networking Basics
Protocol and Ports
Hytale uses QUIC over UDP for game connections:
- Primary port: UDP 5520 (default)
- Protocol: QUIC (UDP-based)
- No TCP required for game connections
Important: TCP port forwarding alone will NOT work. You must forward UDP.
How Connections Work
- Player's game client sends UDP packets to your server IP
- Packets travel through the internet to your network
- Your router receives the packets
- Port forwarding rules direct packets to your server
- Hytale server processes the connection
Port Forwarding Setup
Step 1: Find Your Server's Local IP
Windows:
ipconfig
Look for "IPv4 Address" under your active adapter.
Linux/Mac:
ip addr
# or
ifconfig
Your local IP typically looks like 192.168.x.x or 10.0.x.x.
Step 2: Access Your Router
- Open a web browser
- Navigate to your router's admin page (common addresses):
192.168.1.1192.168.0.110.0.0.1
- Log in with your router credentials
Step 3: Create Port Forward Rule
Navigate to "Port Forwarding," "NAT," or "Virtual Servers" (varies by router).
Create a new rule with:
| Setting | Value |
|---|---|
| Name/Description | Hytale Server |
| Protocol | UDP |
| External Port | 5520 |
| Internal Port | 5520 |
| Internal IP | Your server's local IP |
Save and apply the changes.
Step 4: Verify the Forward
Use an online port checker:
- Start your Hytale server
- Visit a site like canyouseeme.org
- Enter port 5520
- Select UDP if the option exists
- Check if the port is open
Firewall Configuration
Windows Firewall
Open Windows Defender Firewall with Advanced Security:
Inbound Rule:
- Click "Inbound Rules" → "New Rule"
- Select "Port" → Next
- Select "UDP" and enter "5520"
- Select "Allow the connection"
- Apply to all profiles (or just Private if home network)
- Name it "Hytale Server"
Or via Command Line:
netsh advfirewall firewall add rule name="Hytale Server" dir=in action=allow protocol=UDP localport=5520
Linux (UFW)
# Allow Hytale port
sudo ufw allow 5520/udp
# Verify
sudo ufw status
Linux (iptables)
sudo iptables -A INPUT -p udp --dport 5520 -j ACCEPT
Cloud/VPS Firewall
If hosting on a cloud provider, configure their security groups:
AWS Security Groups
- Go to EC2 → Security Groups
- Edit inbound rules
- Add rule: UDP, Port 5520, Source 0.0.0.0/0
DigitalOcean Firewall
- Go to Networking → Firewalls
- Add inbound rule: UDP, Port 5520
Other Providers
Similar process - look for firewall, security groups, or network rules.
Static IP Configuration
Prevent your server's IP from changing:
Router DHCP Reservation
- Access router admin panel
- Find "DHCP Reservation" or "Address Reservation"
- Add your server's MAC address
- Assign a specific local IP
Static IP on Server
Linux (Netplan):
# /etc/netplan/01-config.yaml
network:
version: 2
ethernets:
eth0:
addresses:
- 192.168.1.100/24
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
Apply with: sudo netplan apply
Dynamic DNS
If your public IP changes frequently:
- Sign up for a Dynamic DNS service (No-IP, DuckDNS, etc.)
- Create a hostname (e.g.,
myserver.ddns.net) - Install the DDNS client on your network
- Players connect using your hostname instead of IP
Troubleshooting
"Connection Refused"
Possible causes:
- Server not running
- Wrong IP/port
- Firewall blocking connection
- Port not forwarded correctly
Solutions:
- Verify server is running and authenticated
- Double-check the IP address players are using
- Test locally first (connect from same network)
- Review firewall rules
- Verify port forwarding rule
"Connection Timed Out"
Possible causes:
- Port forwarding not working
- ISP blocking the port
- Server unreachable
Solutions:
- Test with port checker tools
- Try a different port
- Contact ISP if ports are blocked
- Consider a VPN or hosting service
Players Get Disconnected
Possible causes:
- Unstable internet connection
- Server overloaded
- Authentication issues
Solutions:
- Check server resource usage
- Review server logs for errors
- Re-authenticate if needed
- Reduce view distance or player limit
UPnP Not Working
If automatic port forwarding fails:
- Check if UPnP is enabled in router
- Some routers have buggy UPnP
- Manual port forwarding is more reliable
- Consider disabling UPnP and using manual rules
Network Performance Tips
- Use wired connection - Ethernet is more stable than WiFi
- Close bandwidth-heavy applications - Streaming, downloads
- Check for packet loss - Use ping tests
- Consider QoS settings - Prioritize game traffic
- Monitor upload bandwidth - Critical for hosting
Security Considerations
- Don't expose unnecessary ports - Only forward what's needed
- Keep server software updated - Security patches
- Use strong server authentication - Required by Hytale
- Consider DDoS protection - For public servers
- Monitor access logs - Watch for suspicious activity
Still having issues? Check the Server Setup Guide or visit our FAQ for more help.