Valheim Server Settings

From Survival Servers
Revision as of 06:15, 21 October 2026 by Ryan (talk | contribs) ([wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description)
Jump to navigation Jump to search

Valheim has no server config file. Every Valheim server setting is either a launch parameter on the start line, a world modifier stored in the world itself, or one of three plain text files next to the saves.

If you are setting a server up from scratch, start with How to Create a Valheim Server and come back here for the full list.

Every launch parameter

These go on the valheim_server start line. On a self hosted server that is your copy of start_headless_server.bat (Windows) or start_server.sh (Linux). On a hosted server the panel builds the line for you.

Parameter Default What it does
-name "My Server" the world name The name shown in the community server list and to joining players
-port 2456 2456 Game port. The server also uses the next port up (2457) for queries, so both need forwarding on a home connection
-world "Dedicated" Dedicated World to load. A world with that name is created on first start. Point it at an existing world's name to load that one
-password "secret" none Join password. At least five characters, and it must not appear in the world name or seed, or the server refuses to start (checked only with -public 1)
-savedir "path" the game's default save folder Where worlds, characters and the three access files are read from and written to
-public 1 1 1 lists the server in the in game community browser, 0 hides it. Players can still join a hidden server by IP or join code
-logFile "path" none Writes the server log to a file instead of the console window
-saveinterval 1800 1800 (30 minutes) Seconds between autosaves. Shorter means less lost on a crash, at the cost of a brief stutter each save on very large worlds
-backups 4 4 How many automatic backups to keep. The first uses the short interval, the rest the long interval
-backupshort 7200 7200 (2 hours) Age of the first automatic backup
-backuplong 43200 43200 (12 hours) Spacing of the remaining automatic backups
-crossplay off Enables the crossplay backend so Xbox, Game Pass, PlayStation 5 and Switch 2 players can join with a join code. Also removes the need for port forwarding, because traffic goes through Iron Gate's relay
-instanceid [text] none Only needed when several crossplay servers share a public IP and port from one machine. Any unique text per server
-preset [name] none Applies a world modifier preset: normal, casual, easy, hard, hardcore, immersive, hammer. Replaces every modifier saved in the world and any set before it on the line
-modifier [name] [value] none Sets one world modifier. Put it after -preset if you use both. Values are in the next section
-setkey [name] none Turns on one of the checkbox modifiers: nobuildcost, playerevents, passivemobs, nomap, fire
-resetmodifiers off Clears the modifiers saved in the world before the rest of the line applies. Put it first
-nographics -batchmode always on for a server Headless mode. Leave them in place

A complete self hosted start line looks like this:

valheim_server.exe -nographics -batchmode -name "Midgard Crew" -port 2456 -world "Midgard" -password "vikings" -public 1 -crossplay -saveinterval 900 -preset normal -modifier raids less -backups 6

Do not put the port, the password or the world name inside quotes that contain other characters, and keep the whole thing on one line.

World modifiers

World modifiers change the rules of one world and are saved in that world, so they follow it wherever it is loaded. Set them from the world's settings screen in the game, on the start line with -preset, -modifier and -setkey, or live on a running server with the admin commands at the end of this section.

Presets

Preset Feel
normal Default rules. Every modifier at its standard value
casual The gentlest preset: forgiving combat and death, more resources, no raids, portals carry everything
easy Easier combat and fewer raids
hard Tougher combat and more raids
hardcore The harshest combat and death penalty, more raids, no map, portal restrictions
immersive Plays without the map and without portals
hammer No build cost, no raids, and enemies do not attack until provoked. Valheim 1.0 does not flag it as a cheat

The exact value each preset sets is shown on the world modifier screen in game when you pick it. A preset is a starting point: apply it first, then override single modifiers.

Individual modifiers and their values

These are the values Iron Gate's dedicated server guide accepts with -modifier. Leaving a modifier out keeps it at default.

Modifier Values, from easiest to hardest What it changes
combat veryeasy, easy, default, hard, veryhard Damage you deal and take
deathpenalty casual, veryeasy, easy, default, hard, hardcore What you lose on death, from keeping your equipped gear with very little skill loss up to losing your whole inventory and every skill
resources most, muchmore, more, default, less, muchless How much every resource drop gives
raids none, muchless, less, default, more, muchmore How often raid events hit your base
portals casual, default, hard, veryhard What can go through portals. Casual lets ores and metals through; very hard disables portals

Checkbox modifiers set with -setkey:

Key What it does
nobuildcost Building costs nothing (hammer mode). Not flagged as a cheat in 1.0
playerevents Raids are triggered by each player's own progress instead of the world's
passivemobs Creatures do not attack unless you attack them first
nomap No map for anyone
fire Wood can catch fire and spread through the whole world, not just the Ashlands

Changing modifiers on a running server

An admin can change modifiers from the in game console without a restart. Apart from the three access files below, they are the only settings that can be changed live.

Command Example
setworldmodifier [name] [value] setworldmodifier resources more
setworldpreset [name] setworldpreset casual
resetworldkeys Every modifier back to default. Boss progress is not touched

The rest of the admin set, and how to get onto the admin list, is in Valheim Console Commands.

The three access files

They live in the save directory (the -savedir folder, or the game's default one), one platform user ID per line, in the format the F2 panel shows in game, for example Steam_76561197960287930.

File Effect
adminlist.txt Admin rights: kick, ban, save, world modifiers
bannedlist.txt Those players cannot join
permittedlist.txt Whitelist. Any entry at all turns the server invite only; leave it empty unless that is what you want

Where worlds, saves and backups live

  • Self hosted default: %userprofile%\AppData\LocalLow\IronGate\Valheim\worlds_local on Windows, ~/.config/unity3d/IronGate/Valheim/worlds_local on Linux, or the -savedir folder if you set one.
  • Since Valheim 1.0, a world is a folder named after the world. A world last saved before 1.0 is two files with the same name, .db and .fwl. Copying or moving a world is covered in How to Download a Valheim World.
  • Automatic backups (-backups) are written next to the world as [world]_backup_auto-[date] folders, or .db and .fwl pairs for worlds from before 1.0. They protect against a corrupt save, not against deleting the folder, so keep an off server copy of anything you care about.

Settings on a Survival Servers server

Where each setting lives:

Setting Where in the panel What it sets
Server name Server Title -name
Password Server Password -password. Five characters or more, alphanumeric
World Active World -world. Lists the worlds in worlds_local. To add one, use Upload world in the Command Center or upload the world folder into worlds_local over FTP
Crossplay Launch Params, Crossplay checkbox -crossplay
Autosave Launch Params, Save Interval -saveinterval, from 10 to 30 minutes
World preset, modifiers and switches Server Config on servers with No Mod or BepInEx, or Launch Params (Preset and the Launch Parameters Line) -preset, -modifier and -setkey. Both tools hold the same settings, so a change in one shows in the other. ValheimOne and Valheim+ servers keep their own config tools
Anything else Launch Parameters Line Extra flags appended as typed, for example -backups 6
Admins Admin UID Written into adminlist.txt
Game version Game Branch Stable release (recommended), Previous stable, Public test branch (unstable beta builds), or Custom

The port, -savedir, -public 1 and the log file are set by the panel and cannot be changed, and every world stays isolated inside the server's own -savedir. Save the settings and restart for a launch parameter change to apply; a world modifier can also be changed live with the console commands above. Every setting change is also visible in the server's log at logs\serverLog.txt.

Frequently asked questions

Do world modifiers work on an existing world?

Yes. They are stored as world keys, so a preset or modifier applied to a world that is already explored changes the rules from the next start (or immediately with setworldmodifier). Nothing already built or explored is lost.

How do I make my server private?

Set a password of at least five characters and start with -public 0. On a hosted server the panel keeps the listing on, so the password is what gates entry; a password protected server is invisible in practice because nobody can join it without the password. For a strict whitelist, use permittedlist.txt.

How do I change the port?

Self hosted: change -port and forward the new port and the next one up. On a hosted server the port is assigned to the instance and does not change.

Why will my server not start after I set a password?

The password is under five characters, or it is part of the world name or seed. Both are rejected by the game.

Where do I change settings that are not on this page?

There are none in vanilla. Anything beyond this list, such as player limits above ten, building rules or item stack sizes, comes from a mod: Valheim Plus exposes hundreds of extra values through its own config file.

See also

Valheim Console Commands
How to Create a Valheim Server
How to Set Up a Valheim Crossplay Server
How to Download a Valheim World
How to Install Valheim Plus
Valheim Live Map
How to Install ValheimOne on Your PC

Need a host? Valheim server hosting from Survival Servers exposes every setting on this page in the Command Center, with instant setup and 24/7 support.