How to Create a Valheim Server Guide: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Standards cleanup: config lines to pre/code, spacer/HTML removal, heading normalization (corpus audit 2026-07-21)
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Creating a Valheim game server is an easy process that can be done from either a dedicated server or your home computer. Alternatively, you can choose a [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server host] that will fit your needs.
{{#seo:
|title=Valheim Dedicated Server Setup Guide (Self Host or Rent, 1.0 Ready)
|description=How to set up a Valheim dedicated server: requirements, SteamCMD install, the start line, admin files, port forwarding or crossplay, and where saves live.
}}
__TOC__


== Option #1: Renting a Valheim server (see example control panel below!) ==
[https://www.survivalservers.com/services/game_servers/valheim/ Rent a Valheim server] from Survival Servers with
[[File:Control panel.gif|none|link=https://www.survivalservers.com/sspanel/?game=valheim&trckaff=3881&trckit=WIKI]]
instant setup, or host one yourself for free.


[[File:Valheim_game_server.png|none|link=https://www.survivalservers.com/sspanel/?game=valheim&trckaff=3881&trckit=WIKI]]
== Valheim 1.0 and the Deep North: what changed ==


== Option #2: Creating a Valheim Server From Your Home Computer or Dedicated Server ==
Valheim left early access on '''Sep 9, 2026''' after more than five years. For server owners,
== Server Requirements ==
these are the parts that matter:
Windows 7, 8, 8.1, Server 2016, Server 2019 & 64-Bit


Quad Core processor (requires up to 2 full cores)
* '''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.


Up to 16GB memory (currently uses around 2GB memory)
== Option 1: Renting a Valheim server ==


2GB disk space (install folder)
A host runs the machine and gives you a control panel for
updates, settings, mods and backups.


== Step 1: Fetching Game Server files ==
[https://www.survivalservers.com/services/game_servers/valheim/ Rent a Valheim server from Survival Servers]


The best method to get dedicated server game files is via the dedicated server depot on Steam via [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].
Every [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server] at Survival
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
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]].


# Create a folder where you wish to store your Valheim game server hosting files
== Option 2: Creating a Valheim dedicated server yourself ==
# Inside of the folder, place the newly downloading SteamCMD.exe file
# Create a batch file named '''SteamCMD.bat'''
# Place the following code in this batch file:
::: @echo off
::: start "" steamcmd.exe +login USER PASS +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +app_update 896660 validate +quit
# Right-click SteamCMD.bat and Run as Administrator
# Your game server files should be completely downloaded by now


== Step 2: Setting up a Valheim Dedicated Server ==
=== Server requirements ===


# Create a batch file named '''ValheimServer.bat''' in your newly created Valheim server folder from step 1
{| class="wikitable"
# Place the following code in this batch file:
! Component !! Minimum !! Recommended
::: start valheimServer.exe -nographics -batchmode -name "My server" -port 2456 -world "Dedicated" -password "secret" -public 1
|-
| 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 3: Configuring your Valheim Server ==
=== Step 1: Download the server files with SteamCMD ===
Now comes the fun part, setting up your Valheim game server to your liking. There are some launch parameters to be aware of.


'''-name "My server"''' - Names the server<br>
The dedicated server is distributed through Valve's command line tool,
'''-password "secret"''' - Sets a password<br>
[https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD]. You don't need to own Valheim on the
'''-crossplay''' - Enables crossplay<br>
account that downloads it.
'''-saveinterval "15"''' - Sets a custom save interval<br>


There are also a few files that can be configured for admin purposes.<br>
# Create a folder for your Valheim server files, for example <code>C:\Valheim</code>
# Download SteamCMD and place <code>steamcmd.exe</code> inside it
# Create a batch file named '''install.bat''' in that folder
# Paste the following into it:


'''adminlist.txt''' - stores user admins using Steam IDs (1 per line)<br>
<pre>@echo off
'''bannedlist.txt''' - bans users using Steam IDs (1 per line)<br>
start "" "steamcmd.exe" +force_install_dir "C:\Valheim\ValheimServer" +login anonymous +app_update 896660 validate +quit</pre>
'''permittedlist.txt''' - whitelists allowed users by Steam ID (1 per line)<br>


For additional settings consider installing and using [[How to Install Valheim Plus|Valheim+]].
# Run '''install.bat''' and wait for "Success! App '896660' fully installed"


== Step 3: Port Forwarding ==
=== Step 2: Create the start file ===
Add an incoming rule to your Windows Firewall to allow TCP/UDP port (game port) 2456, (Steam query port) 2457 (or whichever ports you decide to use)


You may additionally need to add a forwarding rule to your network router. You can use [http://PortForward.com/ PortForward.com] to read how to do this.
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.


== Location of World Save Data ==
<pre>valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Midgard" -password "vikings" -public 1 -crossplay</pre>


To locate your save folder, navigate to this folder:
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.


<pre>%userprofile%/AppData/LocalLow/IronGate/Valheim/Worlds</pre>
=== Step 3: Configure the server ===


There will be two files:
Valheim has '''no settings file'''. World rules are launch options on the start line from Step 2.


* Dedicated.db (your map data)
{| class="wikitable"
* Dedicated.fwl (your identifier which includes your worldname and seed)
! Launch option !! What it does
|-
| <code>-name "My Server"</code> || The name shown in the server browser
|-
| <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 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>-public 1</code> || Lists the server in the community browser. Use <code>0</code> to hide it
|-
| <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>-preset casual</code> || Applies a world modifier preset (casual, easy, hard, hardcore, immersive, hammer)
|}


== Additional Resources and Reading ==
Three plain text files control access. They're in the save folder (path under "Where world saves are stored"), one platform ID per
:[[Valheim_Admin_Commands|Admin Commands]]
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 <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 ===
 
'''If you used <code>-crossplay</code>, 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. [http://PortForward.com/ 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 <code>-crossplay</code>? Use <code>localhost</code>.
 
Joining steps in detail: [[How_to_Join_a_Valheim_Server|How to Join a Valheim Server]].
 
== Where world saves are stored ==
 
<pre>%userprofile%/AppData/LocalLow/IronGate/Valheim/worlds_local</pre>
 
If you passed <code>-savedir</code>, saves go there instead. Since Valheim 1.0, each world is a folder named after the world, for example <code>worlds_local/Midgard/</code>. 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 <code>-crossplay</code> 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 <code>-crossplay</code> 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.
[https://www.survivalservers.com/services/game_servers/valheim/ Rented Valheim server hosting] removes
port forwarding&nbsp;and&nbsp;downtime.
 
== Additional resources ==
:[[Valheim Console Commands|Valheim Console Commands (admin commands and cheats)]]
:[[Valheim Server Settings|Valheim Server Settings (every launch parameter and world modifier)]]
:[[How_to_Join_a_Valheim_Server|How to Join a Valheim Server]]
:[[How_to_Join_a_Valheim_Server|How to Join a Valheim Server]]
__NOTOC__
:[[How to Install Valheim Plus|How to Install Valheim Plus]]
:[[Valheim Live Map|Valheim Live Map]]
:[https://www.survivalservers.com/tools/valheim-map/ Valheim Seed Map (free: see a seed's world before you play it)]

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)