Menu
 

Valheim Launch Parameters: Every Server Option and Its Default

Valheim launch parameters: quick reference

Valheim's dedicated server has no settings file: every option is a launch parameter on the valheim_server line of start_server.sh (Linux) or start_headless_server.bat (Windows). Iron Gate's own start script for 1.0 reads ./valheim_server.x86_64 -name "My server" -port 2456 -world "Dedicated" -password "secret" -crossplay. Copy the script before you edit it, because a server update replaces the original. This page lists every parameter the 1.0.17 server reads, with its default; the configuration guide explains each one in depth.

Every parameter and its default

ParameterDefaultWhat it does
-namethe world nameName shown in the server list
-port2456Game port; the Steam backend also uses the port above it
-worldDedicatedWorld to load, or create if it does not exist
-passwordnoneJoin password: at least 5 characters, not inside the world name or seed, on a public server
-public11 lists the server in the community list, 0 hides it; 1 also applies when you leave it out
-crossplayoffUses the crossplay (PlayFab) backend so every platform can join; no port forwarding
-savedir~/.config/unity3d/IronGate/ValheimWhere worlds and the admin, ban and permitted lists are kept
-saveinterval1800Seconds between world saves
-backups4Automatic backups kept: one after -backupshort, the rest -backuplong apart
-backupshort / -backuplong7200 / 43200Seconds between the first and the later automatic backups
-instanceidnoneA unique value per server when several share a port from one machine
-presetnoneWorld modifier preset: normal, casual, easy, hard, hardcore, immersive or hammer
-modifiernoneOne world modifier and its value, for example -modifier raids none; put it after any -preset
-setkeynoneA world key such as nomap, passivemobs, nobuildcost or playerevents
-resetmodifiersoffClears the world's modifier keys before the options above are applied
-simulationdistance20 to 6: caps every player's draw distance, and with it how much each one simulates
-logfilenoneWrites the log to this file

Two traps. A public server, which is the default, quits at start with Error bad password in its log if the password is too short or appears inside the world name or seed. And a -modifier value must be the option's name: a number is read as the option's position in the game's list, so -modifier resources 2 sets Less, not double.

Admins, bans and the whitelist

These are not launch parameters but three files in the save folder, one platform ID per line: adminlist.txt, bannedlist.txt and permittedlist.txt. See grant admin, ban, kick and unban and the whitelist. On a Supercraft server, set all three in the access settings of the configuration tab.

Frequently Asked Questions

Do I need to restart the server to change launch parameters?

Yes. Launch parameters are read once, when the server starts. The admin, ban and permitted lists are the exception: the server rereads those files within about 10 seconds.

Is a Valheim server public by default?

Yes. A server started without -public is listed, exactly as with -public 1, and it then needs a valid password.

Can I set the world seed with a launch parameter?

No. None of the server's options takes a seed; a world it creates gets a random one. Create the world with your seed in the game and upload it, or use a seed mod.

Can I run several Valheim servers on one machine?

Yes. Give each its own -port (the Steam backend also takes the port above it) and its own -savedir, and on crossplay a unique -instanceid.

Launch a Valheim server with this setup

Pick a preset and your new server boots preconfigured - rates, rules and mods already dialed in. Change anything later in the panel.

Browse all Valheim recipes →

Valheim Crossplay: Passive Mobs

Crossplay preset with the passive-mobs world modifier: creatures do not aggro unprovoked. Great for mixed-ski…

Valheim Crossplay: Scheduled Restarts

Crossplay-enabled server (Steam + Xbox/PC Game Pass) with a nightly restart window for stability. Use when yo…

Tired of fighting this issue every patch?

Run a managed Valheim server with us. We handle the patches, mod-version pinning, save backups, and DDoS protection. Set up in minutes, multiple datacenter regions, no contract.

See Valheim hosting plans →
Top