How to Create a Valheim Server Guide: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
Line 5: Line 5:
__TOC__
__TOC__


If you would rather skip the setup entirely, you can
[https://www.survivalservers.com/services/game_servers/valheim/ Rent a Valheim server] from Survival Servers with
[https://www.survivalservers.com/services/game_servers/valheim/ rent Valheim server hosting] with
instant setup, or host one yourself for free.
instant setup, or read on to build one yourself for free.


== Valheim 1.0 and the Deep North: what changed ==
== Valheim 1.0 and the Deep North: what changed ==


Valheim left early access on '''9 September 2026''' after more than five years. For anyone running a
Valheim left early access on '''Sep 9, 2026''' after more than five years. For server owners,
server, these are the parts that matter:
these are the parts that matter:


* '''The Deep North is the final biome.''' New enemies including Gammeltrolls, new frozen dungeons, new gear, and grappling hooks for traversal.
* '''The Deep North is the final biome.''' It adds new enemies such as Gammeltrolls, frozen dungeons, new gear and grappling hooks for getting around.
* '''Existing worlds carry over.''' You do not need a fresh world. Deep North terrain generates in regions of your map that have not been explored yet. If your group has already charted the far north, start a new world to see the new content properly.
* '''Existing worlds carry over.''' You don't need a new world. Deep North terrain generates in parts of your map nobody has explored yet. If your group has already charted the far north, start a new world to see the new content properly.
* '''Full crossplay.''' PC, Xbox, Game Pass, PlayStation 5 and Nintendo Switch 2. A crossplay server accepts all of them.
* '''Full crossplay.''' Valheim 1.0 has crossplay across PC, Xbox, Game Pass, PlayStation 5 and Nintendo Switch 2. A crossplay server accepts all of them.
* '''Update your server before your players update their game.''' A client on 1.0 cannot join a server still on the previous build; the error reads "incompatible version" (every fix is in [[Valheim Incompatible Version Error]]). Re-run your install script to patch the server.
* '''Update your server before your players update their game.''' A player on 1.0 can't join a server still on the old version. The error reads "incompatible version" (every fix is in [[Valheim Incompatible Version Error]]). Run your install script again to update the server.


== Option 1: Renting a Valheim server ==
== Option 1: Renting a Valheim server ==
Line 27: Line 26:


Every [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server] at Survival
Every [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server] at Survival
Servers also includes '''ValheimOne''', an open source server side mod that adds a [[Valheim Live Map|live map of your world]],
Servers also includes '''ValheimOne''', an open source server mod that adds a [[Valheim Live Map|live map of your world]],
shared map pins, a web console and Discord notifications. It runs on the server only, so
shared map pins, a web console and Discord notifications. It runs on the server only, so
players join with unmodified clients. Some optional gameplay settings also need the mod on each
players join with the normal game. Some optional gameplay settings also need the mod on each
player's PC: see [[How to Install ValheimOne on Your PC]].
player's PC. How to install it: [[How to Install ValheimOne on Your PC]].


== Option 2: Creating a Valheim dedicated server yourself ==
== Option 2: Creating a Valheim dedicated server yourself ==
Line 53: Line 52:


The dedicated server is distributed through Valve's command line tool,
The dedicated server is distributed through Valve's command line tool,
[https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD]. You do not need to own Valheim on the
[https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD]. You don't need to own Valheim on the
account that downloads it.
account that downloads it.


# Create a folder for your Valheim server hosting files, for example <code>C:\Valheim</code>
# Create a folder for your Valheim server files, for example <code>C:\Valheim</code>
# Download SteamCMD and place <code>steamcmd.exe</code> inside it
# Download SteamCMD and place <code>steamcmd.exe</code> inside it
# Create a batch file named '''install.bat''' in that folder
# Create a batch file named '''install.bat''' in that folder
Line 68: Line 67:
=== Step 2: Create the start file ===
=== Step 2: Create the start file ===


The server ships with <code>start_headless_server.bat</code>. '''Copy it and edit your copy''': the
The server comes with <code>start_headless_server.bat</code>. '''Copy it and edit your copy''': the
original is overwritten every time the server updates.
original is overwritten every time the server updates.


<pre>valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Midgard" -password "vikings" -public 1 -crossplay</pre>
<pre>valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Midgard" -password "vikings" -public 1 -crossplay</pre>


Double click it. Leave the console window open; closing it incorrectly can lose recent progress. The
Double-click it. Leave the console window open. Closing it the wrong way can lose recent progress. The
first launch creates your world and the save folders.
first launch creates your world and the save folders.


=== Step 3: Configure the server ===
=== Step 3: Configure the server ===


Valheim has '''no settings file'''. World rules are set as flags on the start line above.
Valheim has '''no settings file'''. World rules are launch options on the start line from Step 2.


{| class="wikitable"
{| class="wikitable"
! Flag !! What it does
! Launch option !! What it does
|-
|-
| <code>-name "My Server"</code> || The name shown in the server browser
| <code>-name "My Server"</code> || The name shown in the server browser
Line 87: Line 86:
| <code>-world "Midgard"</code> || World name. Creates the world on first run, loads it afterwards
| <code>-world "Midgard"</code> || World name. Creates the world on first run, loads it afterwards
|-
|-
| <code>-password "vikings"</code> || Join password. '''Minimum five characters''', and it cannot be part of the world name or seed
| <code>-password "vikings"</code> || Join password. '''Minimum five characters''', and it can't be part of the world name or seed
|-
|-
| <code>-port 2456</code> || Game port. The server also uses the next port up (2457)
| <code>-port 2456</code> || Game port. The server also uses the next port up (2457)
Line 93: Line 92:
| <code>-public 1</code> || Lists the server in the community browser. Use <code>0</code> to hide it
| <code>-public 1</code> || Lists the server in the community browser. Use <code>0</code> to hide it
|-
|-
| <code>-crossplay</code> || Enables the crossplay backend so Xbox, Game Pass, PlayStation 5 and Switch 2 players can join. '''Also removes the need to port forward'''
| <code>-crossplay</code> || Turns on crossplay so Xbox, Game Pass, PlayStation 5 and Switch 2 players can join. '''Also removes the need to port forward'''
|-
|-
| <code>-saveinterval 900</code> || Seconds between autosaves. Default is 1800
| <code>-saveinterval 900</code> || Seconds between autosaves. Default is 1800
Line 100: Line 99:
|}
|}


Three plain text files control access. They live in the save folder (see below), one platform ID per
Three plain text files control access. They're in the save folder (path under "Where world saves are stored"), one platform ID per
line:
line:


* '''adminlist.txt''': grants admin, which unlocks the server commands in the in game console (the full list is in [[Valheim Console Commands]])
* '''adminlist.txt''': grants admin, which unlocks the server commands in the in-game console (the full list is in [[Valheim Console Commands]])
* '''bannedlist.txt''': bans those players
* '''bannedlist.txt''': bans those players
* '''permittedlist.txt''': turns the server into a whitelist; if it has any entries, only those players can join
* '''permittedlist.txt''': turns on a whitelist. If it has any entries, only those players can join


The full list of launch parameters, every world modifier preset and value, and the live <code>setworldmodifier</code> commands are in [[Valheim Server Settings]]. For values vanilla does not expose, see [[How to Install Valheim Plus|Valheim Plus]].
The full list of launch parameters, every world modifier preset and value, and the live <code>setworldmodifier</code> commands are in [[Valheim Server Settings]]. For settings the base game doesn't have, see [[How to Install Valheim Plus|Valheim Plus]].


=== Step 4: Port forwarding ===
=== Step 4: Port forwarding ===


'''If you used <code>-crossplay</code> you can skip this step entirely.''' Crossplay servers connect
'''If you used <code>-crossplay</code>, skip this step.''' Crossplay servers connect
through a relay, which is the single easiest fix for "my friends cannot join".
through a relay, which is the easiest fix for "my friends can't join".


Otherwise, forward '''UDP 2456''' and '''UDP 2457''' to the machine running the server, and allow the
Otherwise, forward '''UDP 2456''' and '''UDP 2457''' to the machine running the server, and allow the
Line 118: Line 117:
router model.
router model.


Players can then find you in the in game community browser, or connect directly using your public IP
Players can then find you in the in-game community browser, or connect directly using your public IP
and port. Playing on the same PC as a server started without <code>-crossplay</code>? Use <code>localhost</code>.
and port. Playing on the same PC as a server started without <code>-crossplay</code>? Use <code>localhost</code>.


See [[How_to_Join_a_Valheim_Server|How to Join a Valheim Server]] for the joining steps in detail.
Joining steps in detail: [[How_to_Join_a_Valheim_Server|How to Join a Valheim Server]].


== Where world saves are stored ==
== Where world saves are stored ==
Line 143: Line 142:
=== Does my existing world work in Valheim 1.0? ===
=== Does my existing world work in Valheim 1.0? ===
Yes. Deep North terrain generates in unexplored regions of your map. Areas your group has already
Yes. Deep North terrain generates in unexplored regions of your map. Areas your group has already
charted stay as they are, so a heavily explored far north will not show the new biome properly.
charted stay as they are, so a heavily explored far north won't show the new biome properly.


=== Can PlayStation and Switch players join my server? ===
=== Can PlayStation and Switch players join my server? ===
Line 149: Line 148:


=== Why do my friends get "incompatible version"? ===
=== Why do my friends get "incompatible version"? ===
The server and the client are on different builds. Re-run your install script to patch the server,
The server and the players' game are on different versions. Run your install script again to update the server,
then restart it.
then restart it.


=== Why can nobody connect to my server? ===
=== Why can nobody connect to my server? ===
In order of likelihood: the server was started without <code>-crossplay</code> and UDP 2456 and 2457
Most often, the server was started without <code>-crossplay</code> and UDP 2456 and 2457
are not forwarded; Windows Firewall is blocking the ports; or the password is under five characters,
aren't forwarded. Next, Windows Firewall is blocking the ports. Or the password is under five characters,
which stops the server from starting at all.
which stops the server from starting at all.



Latest revision as of 08:49, 17 November 2026

Rent a Valheim server from Survival Servers with instant setup, or host one yourself for free.

Valheim 1.0 and the Deep North: what changed

Valheim left early access on Sep 9, 2026 after more than five years. For server owners, these are the parts that matter:

  • The Deep North is the final biome. It adds new enemies such as Gammeltrolls, frozen dungeons, new gear and grappling hooks for getting around.
  • Existing worlds carry over. You don't need a new world. Deep North terrain generates in parts of your map nobody has explored yet. If your group has already charted the far north, start a new world to see the new content properly.
  • Full crossplay. Valheim 1.0 has crossplay across PC, Xbox, Game Pass, PlayStation 5 and Nintendo Switch 2. A crossplay server accepts all of them.
  • Update your server before your players update their game. A player on 1.0 can't join a server still on the old version. The error reads "incompatible version" (every fix is in Valheim Incompatible Version Error). Run your install script again to update the server.

Option 1: Renting a Valheim server

A host runs the machine and gives you a control panel for updates, settings, mods and backups.

Rent a Valheim server from Survival Servers

Every Valheim server at Survival Servers also includes ValheimOne, an open source server mod that adds a live map of your world, shared map pins, a web console and Discord notifications. It runs on the server only, so players join with the normal game. Some optional gameplay settings also need the mod on each player's PC. How to install it: How to Install ValheimOne on Your PC.

Option 2: Creating a Valheim dedicated server yourself

Server requirements

Component Minimum Recommended
Operating system Windows 10, Windows 11, or Windows Server 2019/2022 Windows 11 or Server 2022
CPU Modern quad core Fast quad core. Valheim leans on single thread speed far more than core count
Memory 4 GB free for the server 8 GB free. A long running world with several players will use more than the 2 GB an empty world needs
Storage 2 GB for the install SSD or NVMe. World saves grow and are written on every autosave
Network 5 Mbit up Wired connection. Hosting from a home Wi-Fi PC is the most common cause of rubber banding

Step 1: Download the server files with SteamCMD

The dedicated server is distributed through Valve's command line tool, SteamCMD. You don't need to own Valheim on the account that downloads it.

  1. Create a folder for your Valheim server files, for example C:\Valheim
  2. Download SteamCMD and place steamcmd.exe inside it
  3. Create a batch file named install.bat in that folder
  4. Paste the following into it:
@echo off
start "" "steamcmd.exe" +force_install_dir "C:\Valheim\ValheimServer" +login anonymous +app_update 896660 validate +quit
  1. Run install.bat and wait for "Success! App '896660' fully installed"

Step 2: Create the start file

The server comes with start_headless_server.bat. Copy it and edit your copy: the original is overwritten every time the server updates.

valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Midgard" -password "vikings" -public 1 -crossplay

Double-click it. Leave the console window open. Closing it the wrong way can lose recent progress. The first launch creates your world and the save folders.

Step 3: Configure the server

Valheim has no settings file. World rules are launch options on the start line from Step 2.

Launch option What it does
-name "My Server" The name shown in the server browser
-world "Midgard" World name. Creates the world on first run, loads it afterwards
-password "vikings" Join password. Minimum five characters, and it can't be part of the world name or seed
-port 2456 Game port. The server also uses the next port up (2457)
-public 1 Lists the server in the community browser. Use 0 to hide it
-crossplay Turns on crossplay so Xbox, Game Pass, PlayStation 5 and Switch 2 players can join. Also removes the need to port forward
-saveinterval 900 Seconds between autosaves. Default is 1800
-preset casual Applies a world modifier preset (casual, easy, hard, hardcore, immersive, hammer)

Three plain text files control access. They're in the save folder (path under "Where world saves are stored"), one platform ID per line:

  • adminlist.txt: grants admin, which unlocks the server commands in the in-game console (the full list is in Valheim Console Commands)
  • bannedlist.txt: bans those players
  • permittedlist.txt: turns on a whitelist. If it has any entries, only those players can join

The full list of launch parameters, every world modifier preset and value, and the live setworldmodifier commands are in Valheim Server Settings. For settings the base game doesn't have, see Valheim Plus.

Step 4: Port forwarding

If you used -crossplay, skip this step. Crossplay servers connect through a relay, which is the easiest fix for "my friends can't join".

Otherwise, forward UDP 2456 and UDP 2457 to the machine running the server, and allow the same ports through Windows Firewall. PortForward.com has instructions per router model.

Players can then find you in the in-game community browser, or connect directly using your public IP and port. Playing on the same PC as a server started without -crossplay? Use localhost.

Joining steps in detail: How to Join a Valheim Server.

Where world saves are stored

%userprofile%/AppData/LocalLow/IronGate/Valheim/worlds_local

If you passed -savedir, saves go there instead. Since Valheim 1.0, each world is a folder named after the world, for example worlds_local/Midgard/. Back up the whole folder.

A world last saved before Valheim 1.0 is two files instead: Midgard.db (the world data) and Midgard.fwl (the world's name and seed). Back up both.

Frequently asked questions

How much RAM does a Valheim server need?

An empty world runs in about 2 GB. A long running world with several players online is comfortable with 8 GB free. Memory use grows with the number of built structures and loaded zones, not with player count alone.

Do I need to own Valheim to run a dedicated server?

No. The server files download anonymously through SteamCMD. You only need the game to play.

Does my existing world work in Valheim 1.0?

Yes. Deep North terrain generates in unexplored regions of your map. Areas your group has already charted stay as they are, so a heavily explored far north won't show the new biome properly.

Can PlayStation and Switch players join my server?

Yes, from 1.0 onward, if the server is started with the -crossplay flag.

Why do my friends get "incompatible version"?

The server and the players' game are on different versions. Run your install script again to update the server, then restart it.

Why can nobody connect to my server?

Most often, the server was started without -crossplay and UDP 2456 and 2457 aren't forwarded. Next, Windows Firewall is blocking the ports. Or the password is under five characters, which stops the server from starting at all.

Is it cheaper to host a Valheim server myself?

Self hosting costs nothing but uses your own hardware, bandwidth and uptime, and the machine has to stay on for others to play. Rented Valheim server hosting removes port forwarding and downtime.

Additional resources

Valheim Console Commands (admin commands and cheats)
Valheim Server Settings (every launch parameter and world modifier)
How to Join a Valheim Server
How to Install Valheim Plus
Valheim Live Map
Valheim Seed Map (free: see a seed's world before you play it)