How to Host a Valheim Dedicated Server

A Valheim dedicated server keeps your world running when the friend who usually hosts is offline, and it takes the hosting load off their PC so fights and big bases run smoother for everyone. This guide covers the settings that matter, the password rules that stop servers from starting, crossplay, world modifiers, moving your existing world, admins and mods.

Last updated 7 min readValheim server hosting
On this page (10 sections)

Valheim's dedicated server is configured with launch options (such as -name and -password) rather than a settings file. On NEXUS you set them from the Game Hosting Panel's Game settings page, so this guide gives the panel name first and the launch option for reference.

Start with the guided setup

A new Valheim server opens a Guided server setup ("Let's get your Valheim server ready") the first time you open it. It has three steps (Start, Details and Review) and nothing changes until you confirm. Skip for now closes it; Resume setup on the Home page brings it back.

The Valheim guided server setup in the Game Hosting Panel, with a Skip for now button
The guided setup asks a few questions, then shows a summary before anything changes.

The settings every Valheim server has

Open Game settings. The Server section holds the basics, and changes apply at the next start.

Server name (-name)e.g. "Viking Crew"
Shown in the server list and when players connect.
Password (-password)e.g. "skol2024"
Needed to join. See the rules below.
Show in the server list (-public)e.g. 1
Lists the server in Join Game, Community. Friends can also join with the address when it is not listed.
Crossplay (-crossplay)
Lets Xbox, PlayStation and Switch 2 players join with a join code. Without it, only Steam players on PC can join.
World (-world)e.g. "Midgard"
The world the server loads. Change it on the Worlds page.
Valheim Game settings in the panel, Server section with server name, password with a Copy button, Show in the server list, Crossplay and the current world
Game settings, Server: name, password, listing and crossplay.

The Saving and Valheim's own backups section sets how often the world saves and how many of Valheim's own world backups to keep (0 turns them off). Valheim saves when the server stops normally; if it is forced to stop, play since the last save is lost. The same options exist as variables on Startup in the Advanced view.

Password rules (the most common reason a server will not start)

  • The password must be at least 5 characters long.
  • It cannot appear in the server name. A server called "Midgard Mates" with the password "Midgard" fails.
  • Avoid spaces and special characters that need quoting; letters and numbers are safest.

If the server stops right after starting, the Console usually says which rule was broken.

How players join

Your server address (IP and port) is at the top of the Home page, with Copy address and Invite friends buttons. Server address in the sidebar lets you claim a free subdomain if you would rather share a name.

  1. In Valheim, click Start Game, choose a character, then open the Join Game tab.
  2. Click Join IP (or Add server), enter the address as IP:port, and connect.
  3. Enter the server password when asked.

Tip: Adding the server to Steam's own server browser (View, Game Servers, Favorites) uses the query port, which is the game port plus one. In the game's own Join IP box, use the game port.

Crossplay and join codes

Turn on Crossplay in Game settings and restart. Valheim then routes connections through its crossplay service, and when the server starts the Console prints a line that includes a six-digit join code. Invite friends on the Home page shows it too, as Console join code. Players on Xbox, PlayStation and Switch 2 enter that code to join; Steam players can use the code or the address.

  • The join code changes every time the server restarts, so share it again after each restart.
  • Everyone must be on the same game version. Console updates can arrive at slightly different times from Steam, so a new patch may briefly lock one side out.
  • Only enable crossplay if you need it. Steam-only groups can leave it off.

World modifiers and presets

The world modifiers you see when creating a world in single player are in the World rules section of Game settings. Rules apply when the world loads, so restart to use them.

Difficulty (-preset)e.g. casual
Keep the world's own rules, or one of Valheim's presets: normal, casual, easy, hard, hardcore, immersive or hammer.
Combat (-modifier combat)e.g. hard
veryeasy, easy, hard or veryhard.
Death penalty (-modifier deathpenalty)e.g. casual
casual, veryeasy, easy, hard or hardcore.
Resources (-modifier resources)e.g. more
muchless, less, more, muchmore or most.
Raids (-modifier raids)e.g. none
none, muchless, less, more or muchmore.
Portals (-modifier portals)e.g. casual
casual lets everything through portals; hard and veryhard restrict portals further.
Free building, Raids per player, Passive enemies, No map (-setkey)
Switches for nobuildcost, playerevents, passivemobs and nomap.
Valheim Game settings World rules section with difficulty, combat, death penalty, resources, raids and portals menus, switches for free building, raids per player, passive enemies and no map, and a Reset world rules at the next start option
World rules. Use Reset world rules at the next start after lowering a rule.

Warning: A world remembers the rules it already has. If you lower a rule, tick Reset world rules at the next start: it clears the rules the world has stored, then applies the ones you picked.

Moving your existing world to the server

  1. On your PC, open %userprofile%\AppData\LocalLow\IronGate\Valheim\worlds_local (press Win + R and paste it). Each world is a pair of files: WorldName.db and WorldName.fwl. If your world is not there, it is saved to Steam Cloud; move it to local storage from the game's world menu first.
  2. Zip your world, as the Worlds page in the panel describes.
  3. Stop your server, open Worlds and click Upload a world to upload the ZIP.
  4. Make it the world the server plays (Play this world) and start the server.
The Valheim Worlds page with Upload a world and Start a new world buttons, the current world, Valheim's own backups with Restore and Download, other worlds with Play this world, and upload instructions
Worlds: upload, switch and restore worlds, and download any of them.

Older worlds are converted to the Valheim 1.0 format the first time they load, and the original files are kept. The same page lists Valheim's own backups with Restore and Download.

Admins, bans and the allow list

Open Players. Its tabs are Recently seen, Admins, Allow list and Banned. On Admins, Allow list or Banned, paste a player's ID into the box and click Add. The allow list works like a whitelist: when anyone is on it, only they can join.

  • IDs look like Steam_76561198012345678. In Valheim, press F2 while connected: each player's ID is next to their name. Copy it exactly; capital letters matter.
  • Recently seen remembers players from the server log, with Make admin and Add to allow list for each, but Valheim does not always write a name and ID together, so ask the player for the ID in their F2 panel if one is missing.
  • Admins open the in-game console with F5 to kick, ban, unban and save. On Steam, they start Valheim with the -console launch option. Admins can also turn on devcommands for cheats, which is handy for fixing a broken build and easy to abuse.
Valheim Players page on the Admins tab with an ID like Steam_76561198012345678 in the Add box, tabs for Recently seen, Allow list and Banned, and help on finding a player's ID with F2
Players: paste IDs from the F2 panel into the right list.

Mods

Most Valheim mods run on BepInEx. The panel's Mods page turns BepInEx on and adds mods with one click; restart the server to use changes. It opens with Installed, your mods, then Add mods, grouped by who needs them: Server only: players don't need them, so players install nothing; Admin tools: admins install them too; and Players install them too, which must also be on each player's game. Mods that do not work with crossplay are labelled.

The Valheim Mods page showing BepInEx is on with 2 mods, and server-only mod cards marked Ready for 1.0 with Install buttons
Mods: one-click mods, each labelled with who needs it.

Our Valheim mods guide covers installing them, getting players onto the same mods, adding mods the page does not list, and holding game updates while mods catch up.

FAQ

Why does my Valheim server not show in the community list?

Check that Show in the server list is on in Game settings, restart, and give it a few minutes to appear. Searching the full server name helps. Players can always join by address or join code even when it is not listed.

Can I use a world that has world modifiers already?

Yes. Upload the world as above. To keep its rules, leave Difficulty on Keep the world's own rules; to change them, pick new rules and tick Reset world rules at the next start.

How many players can join?

Valheim supports up to 10 players per world. Bigger bases and more players exploring at once need more resources, so size the plan for the busiest evening, not the average.

Does the server keep backups?

Valheim keeps its own rolling world backups (see Game settings), which you can restore on the Worlds page. The panel's Backups page adds Create backup, a Daily backup and an Automatic restart, and Game settings has Back up the whole server.

Privacy controls

We use necessary cookies for security and checkout. With your consent, we also use analytics, advertising, and support tools. Rejecting keeps non-essential scripts off and removes known tracking cookies. California visitors can opt out of sale or sharing for cross-context advertising.

Privacy Policy