xgaming.tools

Valheim Server Config Generator

Free Valheim dedicated server config generator. Build the launch command with every official flag (-name, -port, -world, -password, -public, -crossplay, -saveinterval, -backups), set all 5 world modifiers (combat, deathpenalty, resources, raids, portals), toggle -setkey flags (nobuildcost, playerevents, passivemobs, nomap), and edit adminlist / bannedlist / permittedlist files. Linux + Windows scripts included.

Loading Valheim server schema…

Generate a full Valheim dedicated server launch script

Valheim's dedicated server is unusual — it has no single config file. Everything is controlled via command-line launch parameters passed to valheim_server.exe (Windows) or valheim_server.x86_64 (Linux), plus 3 plain-text permission files that live in the save directory. This generator builds the whole thing: the full launch command, a proper start_server.sh or start_server.bat with the right LD_LIBRARY_PATH + SteamAppId exports, and editable adminlist.txt / bannedlist.txt / permittedlist.txt content.

14 launch parameters with the right defaults: -name (server display name, quoted if spaces), -port (default 2456 UDP, uses 2456-2457), -world (world save filename), -password (5+ char minimum, mandatory for public servers), -public 0/1 (community browser visibility), -crossplay (flag, enables PC ↔ Xbox/PS5), -savedir (custom save path), -logFile, -saveinterval (default 1800 seconds), -backups (rolling count, default 4), -backupshort / -backuplong (timed backup intervals), -instanceid (multi-server uniqueness), -preset (shorthand for difficulty presets).

5 world modifiers with every valid choice verified against the current post-Ashlands / Deep North game: combat (veryeasy → veryhard), deathpenalty (casual → hardcore — hardcore loses ALL skills on death, no tombstone), resources (muchless → most), raids (none → muchmore), portals (casual for all-items → veryhard for no portals at all). 4 -setkey global flags for creative/peaceful/free-building mode: nobuildcost, playerevents, passivemobs, nomap.

5 built-in presets: Vanilla (defaults + public + crossplay), Hardcore (combat veryhard + deathpenalty hardcore + raids muchmore + portals veryhard — the hardest non-modded run), Casual (combat veryeasy + resources muchmore + raids less — new-player-friendly), Crossplay Public (the standard 2-4 player co-op server), Creative Hammer (nobuildcost + passivemobs + nomap — for dedicated building servers).

Admin list, ban list, and permitted (whitelist) list are plain text — one SteamID64 (17 digits) per line. When permittedlist.txt is non-empty the server switches to whitelist mode (only those IDs can connect). Adminlist entries get /ghost, /debugmode, /heal, /kill, /kick, /ban, and other admin commands.

Deploy: download the script to your server root, chmod +x on Linux, run it. Upload the 3 text files to your save directory (typically ~/.config/unity3d/IronGate/Valheim/ on Linux). XGamingServer's Valheim hosting lets you paste this straight in via File Manager — or swap the generated command into the panel's "Server Startup" field.

Valheim Server Config Generator — FAQ

How do I launch a Valheim dedicated server?

Run valheim_server.x86_64 (Linux) or valheim_server.exe (Windows) with -nographics -batchmode and your launch flags. The server NEEDS -name, -port, -world, and -password (min 5 chars). The generator produces a full start_server.sh (Linux) or start_server.bat (Windows) with the right exports (LD_LIBRARY_PATH, SteamAppId=892970).

Where do adminlist.txt and bannedlist.txt go?

In the save directory — by default ~/.config/unity3d/IronGate/Valheim/ on Linux or %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\ on Windows. If you set a custom -savedir, put them there. One 17-digit SteamID64 per line, no comments.

What's the difference between deathpenalty hard and hardcore?

hard loses 75% of your skill progress on death (tombstone still drops). hardcore (added post-Hildir) wipes ALL skills on death AND removes the tombstone — your gear is gone forever. Hardcore is the most punishing deathpenalty Valheim offers without mods.

Does -crossplay actually work?

Yes, since the Hearth & Home + Mistlands updates Valheim supports PC ↔ Xbox / PS5 crossplay. Add the -crossplay flag to your server launch and Xbox/PS players can join via community server browser. No extra config needed.

Can I add more than 10 players to a Valheim server?

Technically yes, but Valheim doesn't enforce a hard player cap at the server config level — the engine becomes unstable around 10+ players (physics, rendering, world-sync). Most serious servers stick to 8-10 max. There's no -maxplayers flag.

You might also need

Valheim server admin docs

Read the full Valheim server docs →

Step-by-step guides for installing mods, configuring your server, joining, troubleshooting, and admin commands.

Built-In Tool

Config Tool Built Into XGamingServer

Get managed Valheim hosting with this tool in your panel — configure, deploy, and play in minutes. No file uploads needed.

Built-In Config ToolInstant Server SetupDDoS ProtectionExpert 24/7 Support
Get 40% OFFNo setup fees · Cancel anytime