Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
VPS and Hosting

How to Set Up a Valheim Dedicated Server (1.0, Crossplay)

How to set up a Valheim dedicated server by 99RDP

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

PlayersRAMCPU
Up to 54 GB2 fast cores
Up to 10 (official cap)8 GB4 cores
Modded or long-running worlds8–16 GB4+ 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.

Steps to set up a Valheim dedicated server: install with SteamCMD, edit the start script, open ports, join
Valheim server setup

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
Valheim start script options: -name, -port, -world, -password, -public
Start script options

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
OptionMeaning
-nameServer name in the browser
-worldWorld name (save file); a new world is created if it doesn't exist
-passwordAt least 5 characters, and it must not be part of the server name, or the server won't start
-portBase UDP port (default 2456); the server also uses the next port
-public 1Show in the community server list (0 = join by IP only)
-crossplayLet players on Xbox, PS5, Switch 2 and the Microsoft Store join
-saveinterval, -backupsAutosave 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.

Troubleshooting when you cannot join a Valheim dedicated server
Cannot join?

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.txt in the save folder, then restart.
  • Upload an existing world: copy the .db and .fwl files into worlds_local and set -world to 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_update command (the systemd example does it on every restart).
  • Copy the worlds_local folder 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.

Shailabh Suman, CTO at 99RDP
Written byShailabh SumanCTO, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More VPS and Hosting guides

All VPS and Hosting guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services