Valheim dedicated server launch options explained

Every Valheim dedicated server launch option from -name to -crossplay, checked against Iron Gate's guide and the 1.0 patch notes through 1.0.21.

Omne TeamUpdated Nov 17, 20268 min read

Quick answer Valheim servers are configured entirely by launch options: -name, -port (default 2456, and the server also uses the next port), -world, -password, and -public (1 lists the server, 0 makes it join-by-IP only) [1]. Decide the backend first. If every player is on Steam, leave -crossplay off and forward ports 2456-2457. If anyone plays on a console, the Microsoft Store or the Mac App Store, add -crossplay: without it only Steam players can join, and with it you do not forward ports [1]. Checked 2026-11-17 against Iron Gate’s guide and patch notes through 1.0.21.

What changed since the guide was written

Iron Gate’s guide page is dated April 11, 2024 [1]. Valheim 1.0 shipped on 2026-09-09 [5], so the guide predates it. Every option in the tables below still matches that page. What 1.0 and the patches after it changed for someone running a server:

  • New world save format. 1.0 introduced a new save system [5]. The 1.0.15 notes say worlds converted before the 1.0.12 fix lost the levels of items on item and armour stands, and they refer to “the backup which was made when you first loaded the new save format” [7]. Copy your whole save directory before you update a server anyway.
  • Permission list IDs. The 1.0.12 notes fixed a banlist and whitelist problem so that newer-style IDs (the example given is V_123456789) and older ones (Steam_123456789) both work [6].
  • A CPU drain on shared machines. The 1.0.20 notes fix a dedicated server running at an uncapped frame rate when v-sync was enabled in a game client on the same computer, “wasting massive amounts of CPU time” [8]. If you host on the PC you play on, update.
  • Staggered patch rollout. The 1.0.21 notes say the patch takes a few days to reach all platforms while crossplay keeps working [9]. More on that under “Patch day”.
  • Player cap. The 1.0 FAQ says Valheim is still a game for 1 to 10 players [2].

We did not find any change to the launch options themselves in the notes through 1.0.21. Iron Gate’s server manual, which ships with the server program, was not read for this update.

Install and first start

The guide has you install “Valheim Dedicated Server” from the Tools section of your Steam library [1]. On a headless Linux box you use SteamCMD instead. The app ID is 896660, and the mirror of Steam’s app data lists it as free to download [10]:

steamcmd +force_install_dir /home/valheim/server +login anonymous +app_update 896660 validate +quit

Treat that command as unverified. The app ID comes from a third-party mirror, and Valve’s SteamCMD wiki page returned a bot check instead of content when fetched on 2026-11-17, so the flags are standard SteamCMD syntax not confirmed against Valve’s page. The same mirror lists the Linux launch file for this app as start_server_xterm.sh, not the start_server.sh named in the guide [10], so look in the install directory for the script you actually have.

Two things from the guide that save you a bad first hour:

  1. Edit a copy of the start script, not the original. The guide says the original is reset each time Steam updates it, wiping your settings. The scripts are start_headless_server.bat on Windows and start_server.sh on Linux. On Windows the options live on the line that starts start valheim_server (line 7) [1].
  2. Linux needs three packages on top of the libraries the Linux Steam client already uses: libatomic1, libpulse-dev and libpulse0. On a fresh headless box, install them explicitly. If your distribution has glibc older than 2.29 or libstdc++ older than GLIBCXX_3.4.26, the server ships a docker_start_server.sh you run as ./docker_start_server.sh start_server.sh [1].

The core options

Option What it does
-name "My server" The name shown in the server list
-port 2456 The port the server communicates on. Valheim uses this port and port+1
-world "Dedicated" Creates a world with this name, or selects an existing one with that name
-password "Secret" Sets the password to join
-public 1 1 (the default) lists the server, 0 hides it (join by IP only)

All five are from the guide [1]. Here is a complete line using them. Your start script already contains the executable and any environment setup, so change only the options and leave the rest of your copy alone:

# example: change only the options in your copy of start_server.sh
-name "Friends only" -port 2456 -world "Dedicated" -password "pick-something-long" -public 0

My pick for a new server: -public 0 plus a password until everyone has joined once. The server list invites strangers and you do not need them yet. The guide says -public 0 servers do not show up in the list and are joined with the Join IP button [1].

One caveat on -world: the guide says it creates a world with the name you give, or selects an existing one with that name [1]. By that reading, a typo in the name gets you a fresh empty world rather than an error. We did not run it to confirm.

Saving and backups

Option What it does
-savedir [PATH] Overrides the default save path for worlds and permission files
-logFile "d:\log.txt" Where the log file is saved
-saveinterval 1800 Seconds between world saves. Default 1800 (30 minutes)
-backups 4 How many automatic backups are kept
-backupshort 7200 Interval between the first automatic backups. Default 7200 seconds
-backuplong 43200 Interval between the subsequent automatic backups. Default 43200 seconds

From the guide [1]. By default -backups 4 means one backup that is two hours old and three that are twelve hours apart [1]. The default save paths are %USERPROFILE%/AppData/LocalLow/IronGate/Valheim on Windows and ~/.config/unity3d/IronGate/Valheim on Linux. If you set -savedir, back up that path instead.

The guide does not say where automatic backups are written. Assume they share a disk with the world, which means they do not protect you from losing the machine. Copy the directory elsewhere on a schedule. We are not naming save files here: the format changed in 1.0 [5] and we did not inspect one.

Crossplay: the choice that decides your ports

-crossplay runs the server on the PlayFab backend so players on any platform can join. Leave it out and the Steam backend is used, which means only Steam users can see and join [1].

Steam backend (default) -crossplay
Who can join Steam players Players on any platform
Port forwarding Required for 2456-2457 Not required (traffic goes through a relay)
How players join Server list, or Join IP Public IP and port, a join code, or the server list. Not a local or loopback IP [1]

Two practical consequences. The join code changes every time the server restarts [4], so a friend who saved last week’s code needs the new one. And a crossplay server cannot be joined by a local or loopback IP [1], so testing it from the same machine with 127.0.0.1 will not work.

Players on an Xbox cannot host a dedicated server; they can only join one with crossplay on [3]. If crossplay is missing from the Xbox menu, the Crossplay FAQ points at parental controls [3].

On the Steam backend, the guide gives the range, 2456-2457, but does not say UDP or TCP, and we could not find it stated anywhere we could read. If your router forces a choice, forwarding both protocols for those two ports is the cautious option. That is a precaution we have not verified as a requirement. Mods and crossplay together are a separate question: see Valheim mods and crossplay.

Admin, ban and permitted lists

Three text files in the save path control who can do what: adminlist.txt, bannedlist.txt and permittedlist.txt. One Platform User ID per line, in the format [Platform]_[User ID] (case sensitive). You can find the ID in the server log or the in-game F2 panel [1].

One line in the guide matters: adding anyone to the permitted list bans everyone else [1]. Leave permittedlist.txt empty unless you want a strict allowlist.

In game, admins press F5 for the console, where the guide lists Kick PLAYERNAME, Ban PLAYERNAME, Unban PLAYERNAME and Banned [1].

Starting, stopping, and knowing it worked

The server is up when the console prints Game server connected [1]. If you never see it, scroll up for the first error and fix that before touching ports.

Stop it with Ctrl+C in the console window. The guide warns that closing the window with the X might leave the server running in the background [1].

World rules from the command line

  • -instanceid "1" for multiple servers on the same port from one MAC address: give each a unique value [1].
  • -preset hard sets a world modifier preset. Valid: Normal, Casual, Easy, Hard, Hardcore, Immersive, Hammer. A preset overwrites earlier modifiers [1].
  • -modifier raids none sets one modifier. If you combine it with a preset, put it after the preset. Combat takes veryeasy, easy, hard or veryhard; Raids takes none, muchless, less, more or muchmore [1].
  • -setkey nomap sets a checkbox key: nobuildcost, playerevents, passivemobs or nomap [1].

DeathPenalty (casual, veryeasy, easy, hard, hardcore), Resources (muchless, less, more, muchmore, most) and Portals (casual, hard, veryhard) are in the guide too [1].

Patch day

Clients and server must run the same game version. Iron Gate has said this since crossplay launched: mismatched versions might not connect [4]. After 1.0 the practical wrinkle is that platforms get patches at different times. The 1.0.21 notes say it takes a few days to reach all platforms while crossplay stays functional [9]. The 1.0.20 notes warned that Mac App Store players could not play crossplay with others until that store caught up [8].

So when a friend cannot join the day after a patch, compare version numbers before you touch a firewall. Update the dedicated server through Steam, then restart it.

Why people cannot join

  1. Ports not reachable on the Steam backend. Forward 2456-2457, or whatever range your -port implies (that port and the next one). If a Windows Firewall popup appears, tick all the checkboxes [1].
  2. Looking in the list for a -public 0 server. It will not appear. Use Join IP [1].
  3. Crossplay mismatch. A console player cannot see a Steam-backend server, and a crossplay server is not reachable by loopback or local IP [1].

What this post did not verify

  • Password rules. The guide states none. If a password is rejected, check the server log.
  • UDP versus TCP. The guide gives the port range and nothing else.
  • Save file names and moving a local world. The 1.0 save format changed [5]; we have not inspected one and are not guessing at file names.
  • Install command flags. See the SteamCMD note above.

Questions people ask

What ports does a Valheim dedicated server use?

Iron Gate's guide says the default range is 2456-2457: the server uses the port you set with -port and that port plus one. On the Steam backend you forward that range on your router. With -crossplay the guide says traffic goes through a relay and no port forwarding is needed. The guide does not say whether the ports are UDP or TCP.

How do I join a server that is not in the server list?

Start it with -public 0. Iron Gate's guide says that hides it from the list and makes it joinable only through the Join IP button.

Do my friends on Xbox, PlayStation or the Microsoft Store need -crossplay?

Yes. The guide says that without -crossplay the Steam backend is used and only Steam players can see and join. Console and Microsoft Store players need a server started with -crossplay.

Can I run a dedicated server on an Xbox?

No. Iron Gate's Crossplay FAQ says you cannot set up a dedicated server on an Xbox, though Xbox players can join one that has crossplay enabled.

Does the guide say how long a password must be?

No. The guide lists -password but states no length or content rule, so none is claimed here. The game may enforce rules the page does not mention; check the server log if a password is rejected.

Sources

  1. Valheim: A Guide to Dedicated Servers (Iron Gate, page dated April 11, 2024)
  2. Valheim 1.0 FAQ (Iron Gate, July 1, 2026)
  3. Valheim Crossplay FAQ (Iron Gate)
  4. Patch 0.211.7 - Crossplay! (Iron Gate, Steam news, 2022-09-27)
  5. Valheim 1.0 Has Arrived! (Iron Gate, Steam news, 2026-09-09)
  6. Valheim: Hotfix 1.0.10 & 1.0.12 (Iron Gate)
  7. Valheim: Patch 1.0.15 (Iron Gate)
  8. Valheim: Patch 1.0.20 (Iron Gate)
  9. Valheim: Patch 1.0.21 (Iron Gate)
  10. SteamCMD API: app 896660 (third-party mirror of Steam app data)