Guide

How to Set Up Valheim Server Settings: Launch Arguments, Ports and World Modifiers

Kuma
Kuma
November 17, 2026 at 12:08 AM · 7 min read
Clan MemberMajor General
Two Vikings overlooking snowy mountains and a dragon

Quick answer: Valheim has no settings file of its own. Every server option is a command-line argument in the start script, and rented host panels are simply wrappers that translate panel fields into those same arguments at startup. The minimum working line needs -name, -port, -world and -password; everything else is optional. A minimal launch line looks like this:

valheim_server.exe -nographics -batchmode -name "My Valheim Server" -port 2456 -world "Dedicated" -password "change-me-123"

World modifiers (combat, death penalty, resources, raids, portals) are set with -preset and -modifier, and -modifier must come after -preset because a preset overwrites any modifier placed before it. The default base port is UDP 2456, the server also uses the next ports up, and admin rights live in adminlist.txt alongside a permitted/whitelist file.

This guide reflects Valheim 1.0, which released on 9 September 2026, with Patch 1.0.21 (28 October 2026) as the latest official patch.

Where Valheim server settings actually live

Settings sit in three layers, and knowing which one you are editing prevents most "it didn't apply" confusion.

  1. Server variables: name, password, world, backups, crossplay. Set in your panel or start script, applied on restart, easy to change any time.
  2. World modifiers: combat, death penalty, resources, raids, portals. Passed as launch arguments, changed on restart.
  3. World toggles: no build cost, player events, passive mobs, no map. Stored inside the world's .fwl file. Valheim's -setkey argument does not write these into the world's .fwl, and there is no -removekey at all. A toggle set with a launch argument may appear to work for a session and then vanish. They have to be edited in the world file itself, with the server stopped.

If a change seems to have no effect, you almost certainly made it in the wrong layer. The dedicated server itself installs via SteamCMD as app 896660, and Iron Gate maintains its own "A Guide to Dedicated Servers" on the official support site.

Player riding a mount under northern lights in a snowy forest
Player riding a mount under northern lights in a snowy forest

Set up your settings, step by step

  1. Locate the start script. In the server folder it is start_server.sh on Linux or start_headless_server.bat on Windows.
  2. Open it in a plain text editor and edit the quoted values on the launch line. Change only what you need, one setting at a time.
  3. Save the file, keeping a copy of the original so you can roll back.
  4. Restart the server during an agreed window.
  5. Verify by reading the console for a clean start, then joining from every intended platform.

On a rented host, the panel field and the flag are the same thing wearing different clothes: the "Server name" field maps to -name, "Port" to -port, "World name" to -world, "Password" to -password, the public/listed toggle to -public, and the crossplay toggle to -crossplay. Fill in the field, save, and restart exactly as above.

The essential launch arguments

These are the flags most groups actually touch. Self-hosters edit the start script; panel users fill in the matching fields.

Parameter Flag Required? Notes
Server name -name "Name" Required Shows in the public server browser; keep it recognizable
Password -password "pass" Required Minimum 5 characters; cannot match the server name
World name -world "Name" Required Determines which save file to load; case-sensitive
Port -port 2456 Required Base port; the server also uses the next ports up
Crossplay -crossplay Optional Enables Xbox, PlayStation 5, Switch 2 and Game Pass connections
Public -public 1 Optional 1 = listed in the server browser, 0 = unlisted (direct connect only)

A fuller working example line looks like this:

valheim_server.exe -nographics -batchmode -name "My Valheim Server" -port 2456 -world "Dedicated" -password "change-me-123" -public 1 -crossplay

Optional arguments for saves, logs and multiple servers

Beyond the essentials, these cover housekeeping.

Argument Example Purpose
-savedir -savedir "D:\Valheim\Saves" Overrides the default save root
-logFile -logFile "D:\Valheim\server.log" Writes the server log to a chosen location
-instanceid -instanceid "north-1" Distinguishes multiple PlayFab instances
-saveinterval -saveinterval 1800 How often the active world saves (default 30 minutes)
-backups -backups 4 Automatic backups retained (default 4)
-backupshort -backupshort 7200 First backup interval (default 2 hours)
-backuplong -backuplong 43200 Later backup interval (default 12 hours)

Values containing spaces need plain straight quotation marks. Typographic quotes copied from a formatted document will break the line. Keep a copy of the original launch script before editing, and never commit a real password to source control.

Ports, forwarding and crossplay

The default base port is UDP 2456, and the server also uses the next ports up. If connections fail, open the full range, and make sure port forwarding and firewall rules on the router cover the same range.

Crossplay is a separate connection mode, not just a toggle:

Launch configuration Backend Who can join Outside port forwarding
Omit -crossplay Steam Steam users Required for normal outside access
Add -crossplay PlayFab Supported platforms Not required through the relay

Without the flag, the server runs on the Steam backend and needs port forwarding for anyone outside your network. With it, the server runs on PlayFab and outside access goes through the relay.

World presets and the order rule

A preset is a starting point, and Valheim accepts seven: normal, casual, easy, hard, hardcore, immersive, hammer.

  • casual and easy soften combat and the death penalty.
  • hard and hardcore do the opposite, with hardcore removing the ability to recover your gear at all.
  • immersive turns off the map and portals for a no-fast-travel run.
  • hammer removes build costs, the creative-mode preset.

Modifiers then override individual pieces of whatever preset you picked. That combination is what most groups want: a softer preset as the base, then individual modifiers turned back up. Remember the ordering rule, -preset first and -modifier after, or the preset quietly wipes your work.

Individual modifier values

Each modifier category accepts a fixed set of values.

Category Documented values
Combat veryeasy, easy, hard, veryhard
DeathPenalty casual, veryeasy, easy, hard, hardcore
Resources muchless, less, more, muchmore, most
Raids none, muchless, less, more, muchmore
Portals casual, hard, veryhard

The no-map toggle is added separately with -setkey nomap, but -setkey does not write the toggle into the world's .fwl file; the toggle must be edited in the world file itself with the server stopped.

Vikings in icy water near a shipwreck
Vikings in icy water near a shipwreck

Changing modifiers on an existing world

You do not need to start over. Modifiers can be changed on a running world via admin console commands such as setworldmodifier, or through host panel fields. Changes typically apply at the next server start.

World modifiers came to dedicated servers in patch 0.217.22 on 5 October 2023 (per SenseOS; Iron Gate's Steam announcement for 0.217.22), so the argument route is well established by now.

Admin list, whitelist and password rules

Admin rights are managed through adminlist.txt, which sits in the server's save/config directory alongside the permitted/whitelist file. Since Valheim 1.0 the ID is the V_-prefixed ID from the in-game F2 player list, not a bare SteamID64; copy it exactly including the V_ prefix, one per line. The admin list defaults to empty, so set at least one player or nobody can run console commands.

Passwords need 5 or more characters and cannot match the server name. Turn crossplay on if any Xbox, PS5, Switch 2 or Game Pass players are joining, and off if everyone is on Steam.

Valheim server commands for admins

Once you are on the admin list, these in-game console commands cover day-to-day running.

Command What it does
save Forces an immediate world save
info Displays server info (version, players, world name)
ping Shows your latency to the server
lodbias 1-5 Adjusts view distance (higher = more visible, more load)
kick PlayerName Kicks a player from the server
ban PlayerName Bans a player (persists across restarts)
unban PlayerName Removes a ban
banned Lists all banned players
permitted Lists all permitted players (whitelist mode)

Change one setting at a time and verify it

Record the old value, change one field, save, restart during an agreed window, then read the console for a clean start. Join from every intended platform and perform the action the setting affects before touching another setting. A working local server is not proof that every platform can join.

Patch 1.0.21 rolled out over several days, so update both sides before you start diagnosing anything else.

Keep a change record so rollback is possible:

Change Record before restart Test after restart
Gameplay setting Old value, owner, world and restart window The in-world action affected by that setting
Crossplay Platform mix, version, password and join route One PC and one console join and reconnect
Backup or migration World identity, backup destination and restore path World, inventory, settings and join path separately

Five settings that decide whether your group stays

Most of the other arguments are fine at their defaults. What actually shapes a run is the server name, the password rules, crossplay, the world modifiers, and having at least one admin. Get those five right, document who owns each change, and the rest of the start script can sit untouched for months.

Sources

  • Iron Gate: A Guide to Dedicated Servers (valheim.com/support)
  • Iron Gate: Crossplay FAQ (valheim.com/support)
  • Iron Gate: Valheim 1.0 FAQ (valheim.com/support)
  • Iron Gate: Patch 1.0.21 notes (valheim.com/news)
  • Iron Gate: Steam announcement for patch 0.217.22
  • Steam store page for Valheim
  • SteamDB app 896660
  • Valheim Companion: Dedicated Server Settings and Command Generator
  • WinterNode: Valheim Server Settings That Actually Matter
  • DoomHosting: Best Valheim Server Settings 2026
  • Valheim Player Wiki: Nitrado, Admins & Backups
  • GameServerHosting.co.uk: Valheim Server Settings and Commands
  • PC Gamer: After half a decade, Valheim 1.0 finally has a release date
Last updated: November 17, 2026 at 12:08 AM

Comments

0 Comments

Join the Conversation

Share your thoughts, ask questions, and connect with other community members.

No comments yet

Be the first to share your thoughts!