Valheim Dedicated Server: Complete Setup Guide for 2026

Published on

Valheim's dedicated server runs on minimal hardware but has specific configuration needs. Here's how to set it up and keep it stable for your Viking crew.

Written by Jochem, Infrastructure Engineer at Space-Node, 5-10 years experience in game server hosting, VPS infrastructure, and 24/7 streaming solutions. Read author bio →

Valheim Dedicated Server: Complete Setup Guide for 2026

Valheim is deceptively demanding for a 2021 survival game. The world simulation - procedural terrain, enemy spawning, environmental physics - runs on the server, not clients. Getting a stable, low-latency server requires the right setup.

Hardware Requirements

PlayersRAMCPUStorage
2 - 54 GB2 cores10 GB
6 - 106 GB4 cores15 GB
10 - 208 GB4 cores20 GB

Valheim worlds are relatively small (up to 300 MB) but the server process grows with world complexity.

Installing Valheim Dedicated Server on Linux

# Install SteamCMD
sudo add-apt-repository multiverse
sudo apt install steamcmd

# Create a dedicated user (never run game servers as root)
sudo adduser valheim

# Switch to valheim user
su - valheim

# Download Valheim dedicated server (App ID: 896660)
steamcmd +login anonymous +force_install_dir /home/valheim/server +app_update 896660 +quit

Starting the Server

#!/bin/bash
# /home/valheim/start.sh
export SteamAppId=892970
export LD_LIBRARY_PATH=/home/valheim/server/linux64:$LD_LIBRARY_PATH

/home/valheim/server/valheim_server.x86_64 \
  -name "Your Server Name" \
  -port 2456 \
  -world "Dedicated" \
  -password "your_password" \
  -savedir /home/valheim/data/ \
  -public 1
chmod +x /home/valheim/start.sh

Systemd Service (Keeps Server Running)

# /etc/systemd/system/valheim.service
[Unit]
Description=Valheim Dedicated Server
After=network.target

[Service]
Type=simple
User=valheim
WorkingDirectory=/home/valheim/server
ExecStart=/home/valheim/start.sh
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
sudo systemctl enable valheim
sudo systemctl start valheim

Firewall Rules

sudo ufw allow 2456/udp  # Game port
sudo ufw allow 2457/udp  # Game port +1

Valheim uses UDP, not TCP. Ensure your VPS firewall allows UDP on these ports.

Host your Valheim dedicated server on Space-Node

Jochem

About the Author

Jochem, Infrastructure Engineer at Space-Node, expert in game server hosting, VPS infrastructure, and 24/7 streaming solutions with 5-10 years experience.

Since 2023
500+ servers hosted
4.8/5 avg rating

I specialize in Minecraft, FiveM, Rust, and 24/7 streaming infrastructure, operating enterprise-grade AMD Ryzen 9 hardware in Netherlands datacenters.

View my full bio and credentials →

Launch Your VPS Today

Get started with professional VPS hosting powered by enterprise hardware. Instant deployment and 24/7 support included.

Valheim Dedicated Server: Complete Setup Guide for 2026