Self-hosting a Valheim server (and when renting one is worth it)
Updated: 28 September 2026 · Guide · VPS · Game server
A dedicated Valheim server is a separate program from the game. It runs on Linux without graphics, is installed via SteamCMD and doesn't need a Steam account that owns the game; the download is anonymous. The world then lives on the server instead of on a fellow player's computer.
Install with SteamCMD
SteamCMD is Valve's command-line tool. On Debian it's in the non-free section; after that, a single command downloads the server into a directory of its own. The app ID of the dedicated server is 896660:
steamcmd +force_install_dir ~/valheim +login anonymous +app_update 896660 validate +quit
Starting: everything via launch parameters
Valheim has no configuration file for the server. Name, world, password and visibility are passed as parameters. Our servers start exactly like this too:
cd ~/valheim export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH ./valheim_server.x86_64 -nographics -batchmode \ -name "Our Server" -port 2456 -world "Dedicated" \ -password "secret123" -public 1
The password must have at least five characters and must not contain the server name, otherwise the server won't start. That's the most common mistake on first start, and the message about it is easily lost in the log.
Ports: two, both UDP
Valheim uses the given port and the one directly above it, both over UDP. If you only open 2456, the server won't reliably show up in the server browser.
sudo ufw allow 2456:2457/udp
Fellow players connect in game via “Join IP” with address and port. With -crossplay, connections additionally run through a relay service, and then players from the Xbox and Microsoft Store can join too.
Backups: Valheim makes them itself
The server saves the world regularly and keeps a few older states itself. Interval and number are controlled by the parameters -saveinterval, -backups, -backupshort and -backuplong (seconds or count). The world lives under ~/.config/unity3d/IronGate/Valheim/worlds_local as a .db and a .fwl file. A backup that only sits on the same disk isn't really one, though: at least one copy belongs somewhere else.
Mods: on both sides or not at all
Most Valheim mods run via BepInEx and must be on server and client in the same version. A mod only on the server leads to errors when connecting instead of new content. After every game update, mods are the first place it breaks.
Updates and continuous operation
After a game update the server must have the same version as the clients. The simplest way is to run the SteamCMD command above before every start, for example in a systemd service with ExecStartPre. That way the server also restarts on its own after a crash or a machine reboot.
Self-host or rent: the honest trade-off
Self-hosting is worth it if you run a server anyway and keep an eye on updates. Valheim is less demanding than many other survival games.
With a Valheim server rented from us, you set name, password, world, visibility, crossplay, world modifiers and Valheim's own backups in the control panel instead of in launch parameters. At start the server checks for updates itself. On top of that there are up to seven server backups you can download. The difference isn't performance but who takes care of it when nobody can join after an update.
- Rent a Valheim serverSettings and backups in the control panel
- All Valheim settings in the panelGenerated from the control panel's source code
- Rather self-host: VPS plansFull root access, you do everything yourself
- Before this: secure the VPSSet up SSH key and firewall
- Server running, but nobody can join?Five checks and all default ports