How to make a Valheim server: ports, admins
Updated 9 November 2026 · 7 minute read · Valheim (PC), your own PC or a rented server · By Exclsv Support
Valheim’s dedicated server is a free Steam download (SteamCMD app 896660) for Windows or Linux. Open UDP ports 2456 to 2458, set a world name and a password of at least five characters, and list admins by Steam ID in adminlist.txt.
What you need
- A Windows or Linux computer that stays on. Hosting from the game’s own menu works for an evening, but the world stops when you do.
- SteamCMD. The server downloads without a Steam login; players need their own copy of Valheim.
- Memory: about 4 GB for vanilla with a few players. A big BepInEx mod pack needs a lot more.
- Valheim allows 10 players at once on a vanilla server.
Install and start it
- In SteamCMD, type force_install_dir ./valheim, then login anonymous, then app_update 896660 validate.
- Copy the start script that comes with the server (start_server.sh on Linux, start_headless_server.bat on Windows) and edit the copy.
- Set the line that starts the server, for example ./valheim_server.x86_64 -nographics -batchmode -name "My Valheim" -port 2456 -world "Dedicated" -password "longpassword" -public 1. The password needs at least five characters and can’t appear in the server name.
- Run the script. The server is ready when the console shows the world has loaded and Game server connected.
Ports to open
| Port | Protocol | What it’s for |
|---|---|---|
| 2456 | UDP | The game port. Forward it. |
| 2457 | UDP | The query port, one above the game port. Forward it so the server list and Add server work. |
| 2458 | UDP | Reserved next to them. Forward it as well. |
Start options and saves
- -world: the world’s name. A new name makes a new world; the same name loads the old one.
- -public 1 lists the server, -public 0 hides it so people join with the address.
- -saveinterval, -backups, -backupshort and -backuplong: how often the world saves and how many backups it keeps.
- -preset, -modifier and -setkey: world difficulty, such as the raid rate or no build cost.
- -crossplay: lets Xbox and PS5 players in. Xbox and PS5 players then join with a join code that the server prints in its console, and consoles can’t join by address.
Worlds are a pair of files, Dedicated.db and Dedicated.fwl, in worlds_local. On Linux that is under ~/.config/unity3d/IronGate/Valheim; on Windows under your user folder’s AppData\LocalLow\IronGate\Valheim. To move a world from your own game, copy both files there and set -world to the same name, spelt exactly the same.
Mods
Vanilla Valheim has no mods. For mods, install BepInEx (the BepInExPack_Valheim package on Thunderstore) into the server folder and put the mod files in BepInEx/plugins. Every player needs the same mods and versions as the server, and BepInEx mods and crossplay don’t work together.
Admins and the whitelist
Three text files sit next to the worlds, one Steam ID (the long number) per line:
- adminlist.txt: admins, who can kick and ban from the in-game console (F5).
- permittedlist.txt: a whitelist. Fill it and only those players can join.
- bannedlist.txt: banned players.
Edit them with the server stopped, or they may be overwritten.
The easy way: on Exclsv
On an Exclsv server the ports are open, the world and password are set up and the world files are looked after for you. Crossplay is a switch under Game settings, Server, and the join code appears in the console. Choose BepInEx under Loader and version on the Mods page to add Thunderstore mods with everything they need, with crossplay off.

| Size | Memory | Players | Suits | Price a month |
|---|---|---|---|---|
| Friends | 6 GB | 10 | Vanilla | £13.49 |
| Community | 8 GB | 10 | Small mod packs | £17.99 |
| Modded | 12 GB | 10 | Big BepInEx packs | £26.99 |
No VAT is charged.
Valheim plans and what each includes
If it doesn’t work
Friends can’t connect
In Valheim choose Join game, then Join IP, and type the address with port 2456. The server list’s Add server wants the query port, 2457. Check all three UDP ports are forwarded.
The server rejects the password
It needs at least five characters and can’t be part of the server name. Change it in the start line and restart.
Xbox and PS5 players can’t join
Consoles can’t join by address. Start the server with -crossplay and give them the join code from the console, then Join by code.
My world started again from nothing
The -world name has to match the file names exactly, including capital letters on Linux. Copy both the .db and .fwl files into worlds_local before you start.
Friends on your own home network can’t join with the public address
Some home routers don’t let devices inside the house reach the house’s own public address. People at home join with the server PC’s local network address instead; everyone else uses the public one.
Run this on Exclsv: Valheim server hosting, from £13.49 a month