Home/ Guides/ Valheim/ Server Settings Explained
🌳 Valheim · Server Settings

Valheim Server Settings Explained

Valheim has no settings .ini — the whole server config is launch-script flags plus a few world modifiers. Here's every one that matters: name and password (with the rules that silently stop a server booting), ports, the difficulty modifiers, and the admin lists — each in plain English with a sensible default.

Keys & defaults checked against the current GamesOMG generator · last verified June 2026
Jump to a section
⚙️
Don't want to hand-edit config files?
This page explains what each setting does. To actually build your server, the Valheim config generator turns these launch flags and world modifiers into a ready-to-run start_server.bat / start_server.sh plus the admin / permitted / banned list files — correct flag formatting, no typos. (Valheim has no INI; it's all launch-script flags + plain-text Steam-ID lists.)
🌐

Server Identity

The basics players see — and the password rule that trips everyone up.

SettingWhat it doesDefaultRecommended
-nameThe name shown in the server browser. Your password cannot be a substring of it or the server won't boot.My Valheim Serveryour name
-passwordRequired. Minimum 5 characters, cannot be blank, and cannot appear inside the server name — or it silently refuses to start.(none)5+ chars
-public1 = listed in the community browser; 0 = private (still joinable by IP + password). Modded/whitelist servers usually go private.11
The boot-killers: the password must be 5+ characters and cannot be a substring of the server name (so don't put the password in a "clever" name). A blank password also stops the server cold.
🗺️

World & Network

World file and ports. The port gotcha is the #1 reason a server doesn't show in the browser.

SettingWhat it doesDefaultRecommended
-worldThe world file name (no extension). Creates it on first boot, loads it after. Changing it on a live server loads a fresh empty map.DedicatedDedicated
-portBase UDP port. Valheim actually uses three consecutive ports (port, port+1, port+2), so default 2456 opens 2456–2458 — forward all three.24562456
-savedirCustom save path. Leave blank for the default location; override only if you need saves elsewhere.(default)default
Port forwarding: forward three consecutive UDP ports (2456–2458 by default), not just 2456. Forgetting +1/+2 is the most common reason a server is up but invisible in the browser.
📈

Difficulty & World Modifiers

Added in the Ashlands update. A -preset applies a bundled set; individual modifiers below override it on conflict.

SettingWhat it doesDefaultRecommended
-presetBundled modifier pack. none = vanilla, casual = friendlier, hard = tougher. Custom modifiers below win on conflict.nonenone / casual
-modifier combatEnemy damage, aggression, and how forgiving blocks/parries are.defaultdefault / easy
-modifier deathpenaltySkill loss and tombstone behavior on death. casual = minimal; hardcore = permadeath skill loss, no tombstone.defaultdefault / casual
-modifier resourcesResource drop quantity. more/muchmore cut the grind; less punishes careless crafting.defaultdefault / more
-modifier raidsBase-raid frequency. none disables them (popular for build servers); muchmore = constant tower defense.defaultdefault
-modifier portalsPortal rules. casual lets you carry ores through portals (the most-requested tweak); veryhard blocks more items.defaultdefault / casual
Preset vs. modifiers: set a -preset for a quick baseline, but any individual -modifier you add overrides the preset on that setting. The most popular single tweak is -modifier portals casual so you can portal ores.
🧭

World Feature Flags

On/off flags — they emit only when enabled (no stray "= false").

SettingWhat it doesDefaultRecommended
-crossplayLets Xbox and PC players share the server. No downside; leave off if everyone's on Steam.offas needed
-nomapDisables the in-game map entirely — navigate by landmarks only. Hardcore immersion; brutal on big servers.offOff
-nobosspowersDisables the Forsaken Powers from defeating bosses. Niche.offOff
-passivemobsAll enemies ignore players. Creative/build-test flag — don't ship it on a survival server.offOff
-noportalsPortals don't work at all — sail-or-walk only. The "true Viking" preference.offOff
🛡️

Admin & List Files

Three plain-text files in your save directory — one SteamID64 per line.

SettingWhat it doesDefaultRecommended
adminlist.txtFull admin powers (kick, ban, save, teleport, no-clip). Add yourself first.(empty)your ID
bannedlist.txtBlocked players. In-game bans also write here once you run save.(empty)
permittedlist.txtWhitelist — if it has any entries, only those IDs can connect. Leave empty for an open server.(empty)empty
Whitelist gotcha: a non-empty permittedlist.txt flips the server into whitelist-only mode — everyone not on it gets bounced. Leave it empty unless you mean to lock the server down. Crossplay servers may need platform-prefixed IDs (Steam_… / Xbox_…).
📜

Launch Script Options

These shape the .bat/.sh wrapper, not Valheim itself.

SettingWhat it doesDefaultRecommended
Restart on crashWraps the script in a restart loop. Recommended unless your host (systemd/pm2) already auto-restarts.onOn
Update on launchRuns SteamCMD app_update 896660 before each boot to stay patched. Needs SteamCMD on PATH.offOn
Log to fileRedirects output to server.log instead of the console — useful for unattended servers. Overwritten each restart.offOff

Valheim Server Settings FAQ

How do I change Valheim server settings?
There's no settings .ini — Valheim's config is launch-script flags on start_server.bat (Windows) or start_server.sh (Linux), plus three plain-text ID files (adminlist.txt, bannedlist.txt, permittedlist.txt) in your save directory. World modifiers (combat, death penalty, etc.) were added in the Ashlands update. Edit the flags or build them with the generator, then restart.
Why won't my Valheim server start or show up in the browser?
Two classics: (1) the password must be 5+ characters, can't be blank, and can't be a substring of the server name, or the server silently refuses to boot; (2) Valheim uses three consecutive UDP ports (2456–2458 by default), so if you only forwarded 2456 the server runs but never appears in the browser.
How do I carry ores through portals?
Set -modifier portals casual. That's the single most-requested Valheim modifier — it removes the no-ore-through-portals restriction. hard keeps vanilla rules; veryhard blocks even more.
How do I make a Valheim server easier for a casual group?
Use -preset casual for a quick baseline, or tune individually: -modifier combat easy, -modifier deathpenalty casual, -modifier resources more, and -modifier portals casual. Individual modifiers override the preset where they conflict.
Where are the Valheim admin and ban lists?
adminlist.txt, bannedlist.txt, and permittedlist.txt live in your server's save directory — one SteamID64 (17-digit) per line. Add your own ID to adminlist.txt first. A non-empty permittedlist.txt turns the server whitelist-only.