Quick Start

Get your Hytale server running in minutes

Quick Start

Get your Hytale server up and running in just a few minutes.

Prerequisites

Before you begin, ensure you have:

  • Docker installed (version 20.10 or later)
  • Docker Compose (included with Docker Desktop)
  • A Hytale account for server authentication
  • UDP port 5520 available on your system

Requirements

ComponentRequirement
Java25+ (included in image)
RAM4GB minimum, 8GB+ recommended
Disk~2GB for server files
NetworkUDP port 5520

Clone the Repository

git clone https://github.com/romariin/hytale-docker.git
cd hytale-docker/examples

Start the Server

docker compose up -d

This command will:

  • Build the Docker image
  • Download the Hytale server files automatically
  • Start the server container

Watch the Logs

docker compose logs -f

You'll see:

  1. Pre-flight checks (Java version, dependencies)
  2. Server file download via hytale-downloader
  3. Server startup
  4. Authentication prompt (first run only)

Authenticate (First Run Only)

Authentication is automatic. Just watch the logs for the device authorization URL.

When you see the device auth prompt:

  1. Visit the URL shown in the logs
  2. Log in with your Hytale account
  3. Enter the verification code
  4. Authorize the server

The container will automatically:

  • Detect successful authentication
  • Enable encrypted persistence (/auth persistence Encrypted)
  • Be ready for connections

Connect to Your Server

Open the Hytale client and connect to:

your-ip:5520

Replace your-ip with:

  • localhost if running locally
  • Your public IP address if hosting remotely

What Happens on Startup

1. Pre-flight checks
   ├── Java 25+ ✓
   ├── hytale-downloader ✓
   └── Dependencies ✓

2. Download server (if needed)
   ├── Run hytale-downloader
   ├── Extract Server/ and Assets.zip
   └── Verify files

3. Start server
   └── java -jar HytaleServer.jar ...

4. Auto-auth (if enabled)
   ├── Wait for "Hytale Server Booted"
   ├── Check for existing persistence
   │   ├── Found → Done
   │   └── Not found → /auth login device
   └── On success → /auth persistence Encrypted

Important Notes

Hytale uses QUIC over UDP (not TCP). Make sure to:

  • Forward UDP port 5520 in your firewall
  • Configure your router for UDP port forwarding

On subsequent restarts, authentication happens automatically if persistence was configured correctly.

Console Access

To run server commands:

docker attach hytale-server

Type commands like /help, /auth status, etc.

Detach without stopping: Press Ctrl+P then Ctrl+Q

Managing the Server

View Logs

docker compose logs -f

Stop Server

docker compose down

Restart Server

docker compose restart

Force Re-download

docker compose down
FORCE_UPDATE=true docker compose up -d

Full Reset (Deletes All Data!)

docker compose down -v
docker compose up -d

The -v flag deletes all volumes including world data and auth credentials!

Next Steps

On this page