Valheim Server Settings

From Survival Servers
Revision as of 12:21, 19 November 2026 by Ryan (talk | contribs) ([wiki:wiki-operator] Fixes from the review of the rewording: claims, example addresses, names and wording (approved by Ryan, Nov 19))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Valheim has no server config file. Every Valheim server setting is either a launch option 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're setting up a server 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 Survival Servers server, the Command Center 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 Turns on crossplay 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

Don't 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's 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 don't attack until provoked. Valheim 1.0 doesn't 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 don't 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, they're the only settings you can change live.

Command Example
setworldmodifier [name] [value] setworldmodifier resources more
setworldpreset [name] setworldpreset casual
resetworldkeys Every modifier back to default. Boss progress isn't 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 folder (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 can't join
permittedlist.txt Whitelist. Any entry at all turns the server invite only. Leave it empty unless that's 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 Command Center 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 Command Center and can't be changed. Every world stays separate inside the server's own -savedir. Save the settings and restart for a launch option change to apply. A world modifier can also be changed live with the commands in Changing modifiers on a running server. Every setting change also shows in the server's log at logs\serverLog.txt.

Frequently asked questions

Do world modifiers work on an existing world?

Yes. They're 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 Survival Servers server, the Command Center keeps the listing on, so the password decides who gets in. A password-protected server is private 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 Survival Servers server, the port is assigned to your server and doesn't change.

Why won't my server start after I set a password?

The password is under five characters, or it is part of the world name or seed. The game rejects both.

Where do I change settings that aren't 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 adds hundreds of extra settings in its own settings 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

Valheim server hosting from Survival Servers puts every setting on this page in the Command Center, with instant setup and DDoS protection.