The Valheim server is configured through start script parameters: name, port, world, password, save directory and crossplay flags. The most common problems are the password rule, the two adjacent ports and version mismatch. The guide is based on Iron Gate's official dedicated server guide and the LinuxGSM documentation.
Checked 2026-11-17. The official guide dates from April 2024 and the game updates, so always check values in the current documentation. Our team sets the server up; you reach the console, file manager and backups in the client area.
1. Requirements and ports
- The server is found on Steam under the Tools filter (Valheim Dedicated Server).
- On Linux the official guide asks for the libatomic1, libpulse-dev and libpulse0 packages and at least GLIBC 2.29 and GLIBCXX 3.4.26; on an older system Docker can be used.
- Default ports: 2456-2457; the server uses the given port and the next one, so allow both.
- With crossplay (-crossplay) traffic goes through a relay so no port forwarding is needed; connecting is then by public IP and port, join code or server list, and local/loopback IPs are not supported.
- The official guide gives no hardware requirements.
2. First start and parameters
- The start script is start_headless_server.bat (start_server.sh on Linux); our team sets the parameters on line 7.
- Required: -name (server name), -port (default 2456), -world (world name; created if it does not exist) and -password.
- Optional: -public (1 = listed, 0 = join by IP only), -savedir, -logFile, -saveinterval (s, default 1800), -backups (default 4), -backupshort (default 7200 s), -backuplong (default 43200 s), -instanceid, -crossplay.
- Difficulty: -preset (Normal, Casual, Easy, Hard, Hardcore, Immersive, Hammer), -modifier (Combat, DeathPenalty, Resources, Raids, Portals) and -setkey (nobuildcost, playerevents, passivemobs, nomap); -preset overwrites earlier modifiers, so put -modifier after it.
- The server is ready when the console shows: Game server connected. Stop it with Ctrl+C.
-name "NAME" -port 2456 -world "WORLD" -password "SECRET" -public 13. Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The server will not start / the password is rejected | The password is shorter than 5 characters or appears in the server name | Use a password of at least 5 characters that is not contained in -name; according to the sources a server without a password is not allowed either. |
| Says wrong password although it is right | The edited script was not restarted, or the wrong script was edited | Stop the server completely, edit the live script, restart. |
| Nem lehet csatlakozni | The two adjacent ports (2456 and 2457) are not open | Allow both UDP ports; with crossplay try the join code or IP:port. |
| Cannot find it in the server list | The browser is slow, or the name is long/has special characters | Use the Join IP button or add the server to Steam favourites; use a short, simple name. |
| The server keeps running after shutdown | The console was closed with the X button | Stop it with Ctrl+C. |
| Script changes lost | The Steam update resets the script | Keep your edits in a copy and run that. |
| Other players cannot join | permittedlist.txt is not empty and everyone else is excluded | Check permittedlist.txt; empty it if not needed. |
4. Saves and updates
- Default save location on Windows: AppData/LocalLow/IronGate/Valheim, on Linux: ~/.config/unity3d/IronGate/Valheim; -savedir overrides it.
- The autosave default is 1800 s with 4 automatic backups; -saveinterval and -backups change this.
- Updating: the server updates through Steam; client and server versions must match, otherwise joining is rejected.
- Take a backup from the client area before updating, especially of the save directory.
5. Admins and access
- Three files in the save directory control access: adminlist.txt (admins), bannedlist.txt (banned) and permittedlist.txt (allowed).
- One Platform User ID per line in [Platform]_[User ID] format, case-sensitive; the ID is shown in the server log or in the in-game F2 panel.
- Careful: if you add anyone to permittedlist.txt everyone else is excluded.
- In-game admin commands (F5 console): Kick, Ban, Unban, Banned.
- The official guide does not cover mods, so we promise no mod support.
6. Choosing a plan
- The official guide gives no hardware figures; load is driven by the number of players and the size of the explored and built world.
- For a small group of friends the Start or Pro plan is a realistic starting point, for a larger group the Max plan, and watch the load.
- To host several servers on one IP use the -instanceid parameter.
- These are recommendations, not performance guarantees.



