Create a Valheim dedicated server: step-by-step guide
Steam tool, start file, ports 2456 and 2457, crossplay, importing your world, backups and common errors: the complete method, based on the game's official guide.
By Salem ASSADI • Published 25 November 2026 • Related plan: Valheim server
In short
- The server tool is free: “Valheim Dedicated Server”, in the Steam library under Tools.
- Default ports: 2456 and 2457 (the chosen port and the next one).
- With the
-crossplayargument, players from every platform can join, and no port forwarding is needed. - You can reuse an existing world by giving its name to the server.
Step 1: install the server tool from Steam
In the Steam library, open the dropdown menu at the top left and tick “Tools”. Scroll down to “Valheim Dedicated Server” and click “Install”. On Linux, the official guide asks for three extra packages: libatomic1, libpulse-dev and libpulse0.
Step 2: edit the start file
Everything is set in the start_headless_server.bat file (on Linux: start_server.sh), in the installation folder. Work on a copy of this file: the original is reset every time Steam updates it. The settings are arguments placed one after another on the line that starts valheim_server:
-name "My server" -port 2456 -world "MyWorld" -password "YourPassword" -public 1
| Argument | Purpose |
|---|---|
-name | Name shown in the server list. |
-port | Server port, 2456 by default. The game uses this port and the next one. |
-world | World name: created if it does not exist, reused if it already does. |
-password | Server password. |
-public | 1 (default): visible in the list. 0: hidden, joined with the “Join IP” button. |
-savedir | Overrides the folder where worlds and permission lists are stored. |
-crossplay | Runs the server on the crossplay backend (PlayFab): every platform can join. |
Step 3: open ports 2456 and 2457
Without -crossplay, the server uses the Steam backend: its port range, 2456-2457 by default, must be reachable from the Internet, so forwarded on your router (the official guide refers you to your router manual for the procedure). If you change -port, forward the new port and the next one.
With -crossplay, data goes through a relay: no port forwarding is needed. The port number only distinguishes several servers behind the same address.
Step 4: start and stop the server
Run the file (or the tool from Steam). If the Windows firewall asks, allow the server. When the window shows Game server connected, the server is ready. To stop it, press Ctrl + C in the window: closing it with the X may leave the server running in the background.
Crossplay: who can join, and how
Without the -crossplay argument, only Steam players can see and join the server. With it, players from every platform can. A crossplay server is then joined with its public IP address and port, with a join code or through the server list; a local IP address does not work.
Import your world
Worlds are stored in the save folder, by default %USERPROFILE%/AppData/LocalLow/IronGate/Valheim on Windows and ~/.config/unity3d/IronGate/Valheim on Linux. Copy your world's two files (.db and .fwl) into the server's worlds folder, then give the world name to the -world argument: the server reuses it instead of creating a new one.
Automatic backups
-saveinterval 1800: the world is saved every 30 minutes by default.-backups 4: number of automatic backups kept. By default, one 2-hour backup, then three that are 12 hours apart.-backupshort 7200and-backuplong 43200: intervals of the first backup and of the following ones, in seconds.
Administration: admins, bans, access list
Three text files, in the save folder, set the permissions: adminlist.txt, bannedlist.txt and permittedlist.txt. Write one player ID per line, in the format [Platform]_[User ID] (shown in the server log or in game with F2). Careful: as soon as one player is in permittedlist.txt, everyone else is refused. In game, an admin opens the console with F5: kick, ban, unban, banned.
Common errors
The server does not show up in the list
Check -public 1, then the forwarding of ports 2456 and 2457 if you do not use -crossplay.
Cannot join with the local address
That is expected with crossplay: use the public address, the join code or the server list.
My settings disappeared after an update
Steam restored the original file: keep your settings in a copy of the start file.
What about a hosted server?
On an RXCORP Valheim server, the same settings (name, world, password, crossplay) are made from the startup settings of the Pelican panel, with no file to edit. The status of the plan is shown on the Valheim server page. To add mods afterwards, follow the guide Installing BepInEx mods on a Valheim server.
Source
Every setting in this guide comes from Iron Gate's official guide, A Guide to Dedicated Servers (page dated 11 April 2024, read again on 25 November 2026).