LinuxPublished on January 15, 20268 min read

How to install a Hytale server on Linux VPS

This guide installs a Hytale server on Linux, on a VPS running Debian or Ubuntu. It goes through Java 25, the official download tool and a systemd service. It then shows how to link the server to your Hytale account, update it and back it up.


Check the requirements

According to Hypixel Studios, a server needs at least 4 GB of RAM, Java 25 and a single port, 5520 over UDP. Hytale uses the QUIC protocol, so UDP only. Plan on 8 GB of RAM to be comfortable, and more if you expect many players. For Hytale, the speed of each core matters more than the number of cores.

The server comes in two parts. The HytaleServer.jar file runs the game. The Assets.zip archive, several gigabytes in size, holds its resources. Start by updating the system.

sudo apt update && sudo apt upgrade -y

Install Java 25

Debian 13 and Ubuntu 24.04 ship Java 25 in their repositories. A version without a graphical interface is enough for a server.

sudo apt install -y openjdk-25-jre-headless unzip
java --version

The first line of the output should start with openjdk 25.

With Temurin, on Debian 12 or Ubuntu 22.04

These older versions do not have Java 25 in their repositories. Install Temurin from the Adoptium repository.

# Dependencies
sudo apt install -y wget apt-transport-https gnupg lsb-release unzip

# Adoptium GPG key
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /usr/share/keyrings/adoptium.asc

# Adoptium repository
echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/adoptium.list

# Install Java 25
sudo apt update
sudo apt install -y temurin-25-jdk
java --version

Create the hytale user and its folders

Never run a game server as root. Create a system account for the server only, then its folders.

sudo adduser --system --group --home /opt/hytale --shell /bin/bash hytale

# Server and backup folders
sudo mkdir -p /opt/hytale/server
sudo mkdir -p /opt/hytale/backups
sudo chown -R hytale:hytale /opt/hytale

Download the server files

The official hytale-downloader tool downloads the latest version of the server files. Run it with the hytale account.

# Switch to the hytale account
sudo su - hytale
cd /opt/hytale/server

# Download and extract the tool
wget -q https://downloader.hytale.com/hytale-downloader.zip
unzip hytale-downloader.zip
chmod +x hytale-downloader-linux-amd64

# Download the server files into game.zip
./hytale-downloader-linux-amd64 -download-path game.zip

On first run, the tool shows an address and a code. Open the address in your browser and confirm with your Hytale account. The tool then fetches the game archive. Extract it, then check its contents.

unzip -o game.zip
ls -lh /opt/hytale/server/

The folder should contain a Server/ subfolder, with HytaleServer.jar, and the Assets.zip file. The command ./hytale-downloader-linux-amd64 -h lists the tool's options, such as -print-version to show the available version. Type exit to return to your account.


Open port 5520 over UDP

The client area has no network firewall for VPS. The port is opened inside the system, with UFW. Allow SSH before you enable UFW, then the Hytale port, over UDP only.

# SSH first
sudo ufw allow 22/tcp

# Hytale port, UDP only
sudo ufw allow 5520/udp

# Enable and check
sudo ufw enable
sudo ufw reload
sudo ufw status verbose

The list should include the line 5520/udp ALLOW IN Anywhere. Do not open this port over TCP, Hytale does not use it. The guide How to set up the UFW firewall on Ubuntu or Debian explains these rules.


Configure how the server starts

The start script

sudo -u hytale nano /opt/hytale/server/start.sh

Paste this content. The -Xms and -Xmx options set the memory given to Java.

#!/bin/bash
#
# Hytale server start script
#
cd /opt/hytale/server

# JVM settings
JAVA_OPTS="-Xms4G -Xmx6G"
JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC"
JAVA_OPTS="$JAVA_OPTS -XX:MaxGCPauseMillis=200"
JAVA_OPTS="$JAVA_OPTS -XX:+ParallelRefProcEnabled"
JAVA_OPTS="$JAVA_OPTS -XX:+UnlockExperimentalVMOptions"
JAVA_OPTS="$JAVA_OPTS -XX:+DisableExplicitGC"

# Start the server
java $JAVA_OPTS -jar Server/HytaleServer.jar --assets Assets.zip

The server listens on port 5520 by default. The command java -jar Server/HytaleServer.jar --help lists its options. Make the script executable.

sudo chmod +x /opt/hytale/server/start.sh
sudo chown hytale:hytale /opt/hytale/server/start.sh

Adjust the memory to the VPS size and the number of players. Always leave 1 to 2 GB for the system. These values are starting points.

PlayersVPS RAMJVM options
5 to 106 GB-Xms3G -Xmx5G -XX:+UseG1GC
10 to 208 GB-Xms4G -Xmx6G -XX:+UseG1GC -XX:MaxGCPauseMillis=200
20 to 4016 GB-Xms8G -Xmx12G -XX:+UseG1GC -XX:MaxGCPauseMillis=200
50 and more32 GB-Xms16G -Xmx24G -XX:+UseZGC

The config.json file

The server creates /opt/hytale/server/config.json on first start. Stop it before editing this file. Here is an example.

{
  "Version": 3,
  "ServerName": "My Hytale Server",
  "MOTD": "Welcome to our server!",
  "Password": "",
  "MaxPlayers": 20,
  "MaxViewRadius": 16,
  "LocalCompressionEnabled": false,
  "Defaults": {
    "World": "default",
    "GameMode": "Adventure"
  },
  "ConnectionTimeouts": {
    "JoinTimeouts": {}
  },
  "RateLimit": {},
  "Modules": {},
  "LogLevels": {},
  "Mods": {},
  "DisplayTmpTagsInStrings": false,
  "PlayerStorage": {
    "Type": "Hytale"
  }
}
SettingRole
ServerNameName shown in the server list
MaxPlayersMaximum number of players online at once
MaxViewRadiusView distance. 32 is high and costly, 16 noticeably reduces RAM and CPU use.
PasswordEmpty, the server is open. Otherwise players must enter this password.
GameModeDefault game mode, for example Adventure or Creative

The systemd service

A systemd service starts the server with the VPS and restarts it after a crash.

sudo nano /etc/systemd/system/hytale.service
[Unit]
Description=Hytale Server
Documentation=https://support.hytale.com
After=network.target

[Service]
Type=simple
User=hytale
Group=hytale
WorkingDirectory=/opt/hytale/server
ExecStart=/opt/hytale/server/start.sh
ExecStop=/bin/kill -SIGINT $MAINPID
Restart=on-failure
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=hytale

# Security
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable hytale

Do not start the service yet. The server must be authenticated first.


Authenticate the server and welcome players

Players can only join the server once it is linked to your Hytale account. Start it by hand the first time, so you have its console in front of you.

sudo systemctl stop hytale
sudo -u hytale /opt/hytale/server/start.sh

When the console is ready, type this command.

/auth login device

The console shows an address and a code. Open the address in your browser, enter the code and confirm with your Hytale account. Do it straight away, as the code only stays valid for a while. Then save the authentication to disk so it survives restarts.

/auth persistence Encrypted
/auth status

Stop the server with Ctrl+C, then start the service and follow its log.

sudo systemctl start hytale
sudo journalctl -u hytale -f

Players connect with the VPS IP and the port, for example 203.0.113.10:5520, or with a domain name pointing to that IP, such as play.example.com:5520. The guide How to join a Hytale server shows the player side.


Update, back up and monitor

Manage the service

sudo systemctl start hytale
sudo systemctl stop hytale
sudo systemctl restart hytale
sudo systemctl status hytale

# Live log, then full log
sudo journalctl -u hytale -f
sudo journalctl -u hytale --no-pager

Update the server

Always stop the server before an update, or the world may be damaged. Make a safety copy too.

# Stop the server and copy it
sudo systemctl stop hytale
sudo -u hytale cp -r /opt/hytale/server /opt/hytale/backups/server-$(date +%Y%m%d)

# Download and extract the latest version
sudo su - hytale
cd /opt/hytale/server
./hytale-downloader-linux-amd64 -download-path game.zip
unzip -o game.zip
exit

# Start again
sudo systemctl start hytale

Back up automatically

Create the script /opt/hytale/backup.sh. It archives the configuration, the world (universe/ folder) and the mods, then deletes archives older than seven days.

#!/bin/bash
#
# Hytale server backup
#
BACKUP_DIR="/opt/hytale/backups"
SERVER_DIR="/opt/hytale/server"
DATE=$(date +%Y%m%d-%H%M%S)
RETENTION_DAYS=7

# Create the archive
tar -czf "$BACKUP_DIR/hytale-$DATE.tar.gz" \
    --exclude='*.log' \
    -C "$SERVER_DIR" \
    config.json \
    universe/ \
    mods/

# Delete old archives
find "$BACKUP_DIR" -name "hytale-*.tar.gz" -mtime +$RETENTION_DAYS -delete

echo "Backup complete: hytale-$DATE.tar.gz"

Make it executable and schedule it every night at 4 am.

sudo chmod +x /opt/hytale/backup.sh
sudo chown hytale:hytale /opt/hytale/backup.sh
echo "0 4 * * * hytale /opt/hytale/backup.sh" | sudo tee /etc/cron.d/hytale-backup

These archives stay on the VPS disk. Copy them somewhere else too. To back up the whole VPS, the client area offers a paid option, described in the guide How to set up automatic VPS backups.

Restore a backup

# Stop the server
sudo systemctl stop hytale

# Restore the chosen archive
cd /opt/hytale/server
sudo -u hytale tar -xzf /opt/hytale/backups/hytale-YYYYMMDD-HHMMSS.tar.gz

# Start again
sudo systemctl start hytale

Monitor resources

# Memory used by the Java process
ps aux | grep HytaleServer

# Live CPU and memory
htop -p $(pgrep -f HytaleServer)

# Disk space
df -h /opt/hytale

Fix common problems

  • The server refuses to start because of the Java version. Check with java --version that it is Java 25.

  • Assets.zip cannot be found. The file must be in /opt/hytale/server/, the service's working folder.

  • Port 5520 is already in use, or Unable to bind to address appears. Another instance is running. Find it with ss, then stop it.

  • OutOfMemoryError or GC overhead limit exceeded. Memory is short. Raise -Xmx, for example from 6G to 8G, or lower MaxViewRadius.

  • Players cannot connect, or Authentication required appears. Check the UFW rule for port 5520 over UDP, then run /auth login device again in the console.

# Is the server listening?
sudo ss -ulnp | grep 5520

# Free the port held by another process
sudo fuser -k 5520/udp

# Errors from the last hour
sudo journalctl -u hytale --since "1 hour ago" | grep -i error

# Test the UDP port from another machine (result only indicative)
nc -vzu 203.0.113.10 5520

# Java version and file permissions
java --version
ls -la /opt/hytale/server/

The official Hytale server manual describes every option. The Hytale website announces new versions.


Need help?

Open a ticket from Tickets › Open a Ticket, or from the Contact support tile at the bottom of the VPS page. In the Related Service field, pick the VPS so the team saves time. You can also ask your question on the OuiHeberg Discord.

Was this article helpful?

1,958 views
Share this article
Need a Linux VPS?

Root access, your choice of distribution and management from the OuiHeberg client area.

View plans →

Related Articles