
A dedicated server keeps your Valheim world online around the clock, so your group can play whenever they like without the host's PC running. Valheim left Early Access with version 1.0 on 9 September 2026, adding the Deep North and PlayStation 5 and Nintendo Switch 2 versions with crossplay. This guide covers what hardware you need, installing the free dedicated server with SteamCMD on Linux or Windows, the right launch options and ports, enabling crossplay, admins, backups and updates.
Quick answer
steamcmd +force_install_dir ~/valheim +login anonymous +app_update 896660 validate +quit
./valheim_server.x86_64 -name "My Server" -port 2456 -world "Dedicated" -password "secret123" -crossplay
Open UDP ports 2456–2457 (and 2458 to be safe), then join in-game with Add server using IP:2456.
Requirements
| Players | RAM | CPU |
|---|---|---|
| Up to 5 | 4 GB | 2 fast cores |
| Up to 10 (official cap) | 8 GB | 4 cores |
| Modded or long-running worlds | 8–16 GB | 4+ fast cores |
Use SSD storage and a stable connection with a public IP. The server is free; you don't need to own Valheim on the server machine.
Step 1: Install SteamCMD
Ubuntu/Debian:
sudo adduser --disabled-password --gecos "" valheim
sudo add-apt-repository multiverse && sudo dpkg --add-architecture i386
sudo apt update && sudo apt install -y steamcmd libatomic1 libpulse0 libpulse-dev
Windows: download SteamCMD from Valve and extract it to C:\steamcmd.
Step 2: Download the Valheim dedicated server
The dedicated server is Steam app 896660 (the game itself is 892970). It downloads with an anonymous login:
# Linux (as the valheim user)
steamcmd +force_install_dir /home/valheim/server +login anonymous +app_update 896660 validate +quit
# Windows
C:\steamcmd\steamcmd.exe +force_install_dir C:\ValheimServer +login anonymous +app_update 896660 validate +quit
Step 3: Configure the launch options
Copy the included start script (start_server.sh on Linux, start_headless_server.bat on Windows) and edit the launch line:
./valheim_server.x86_64 -nographics -batchmode \
-name "My Server" -port 2456 -world "Dedicated" \
-password "secret123" -public 1 -crossplay -saveinterval 600 -backups 4
| Option | Meaning |
|---|---|
-name | Server name in the browser |
-world | World name (save file); a new world is created if it doesn't exist |
-password | At least 5 characters, and it must not be part of the server name, or the server won't start |
-port | Base UDP port (default 2456); the server also uses the next port |
-public 1 | Show in the community server list (0 = join by IP only) |
-crossplay | Let players on Xbox, PS5, Switch 2 and the Microsoft Store join |
-saveinterval, -backups | Autosave interval in seconds and number of automatic backups kept |
Step 4: Open the ports
# Linux (UFW)
sudo ufw allow 2456:2458/udp
# Windows (PowerShell as admin)
New-NetFirewallRule -DisplayName "Valheim" -Direction Inbound -Protocol UDP -LocalPort 2456-2458 -Action Allow
Also allow the ports in your provider's firewall or router. With -crossplay, players connect through Valheim's crossplay relay, which helps when port forwarding is difficult, but opening the ports is still recommended.
Step 5: Run it as a service (Linux)
Create /etc/systemd/system/valheim.service:
[Unit]
Description=Valheim dedicated server
After=network-online.target
[Service]
User=valheim
WorkingDirectory=/home/valheim/server
Environment=LD_LIBRARY_PATH=/home/valheim/server/linux64
ExecStartPre=/usr/games/steamcmd +force_install_dir /home/valheim/server +login anonymous +app_update 896660 +quit
ExecStart=/home/valheim/server/valheim_server.x86_64 -nographics -batchmode -name "My Server" -port 2456 -world "Dedicated" -password "secret123" -crossplay
Restart=on-failure
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload && sudo systemctl enable --now valheim
KillSignal=SIGINT lets the server save the world when it stops. On Windows, run the batch file from Task Scheduler at startup or with a service wrapper such as NSSM.
Step 6: Join, admins and existing worlds
- Join: in Valheim choose Join Game → Add server and enter
IP:2456. Crossplay servers can also be joined with the join code shown in the server log. - Admins: add player IDs, one per line, to
adminlist.txtin the save folder, then restart. - Upload an existing world: copy the
.dband.fwlfiles intoworlds_localand set-worldto the same name.
Save locations: Linux ~/.config/unity3d/IronGate/Valheim/; Windows %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\.
Backups and updates
- Clients on 1.0 can't join an older server build. After every game patch, re-run the SteamCMD
app_updatecommand (the systemd example does it on every restart). - Copy the
worlds_localfolder to other storage regularly, in addition to the built-in-backups.
Frequently asked questions
How do I make a Valheim dedicated server?
Install app 896660 with SteamCMD, set name, world and password in the start script, open UDP 2456–2457, and start the server.
What ports does a Valheim server need?
UDP 2456 and 2457 by default; many guides open 2456–2458.
How do console players join a Valheim server?
Start the server with -crossplay. PS5, Xbox and Switch 2 players can then join the same world.
How many players can join a Valheim server?
Up to 10 players per world by default.


