Game servers

Setting up a Valheim server

Installing with SteamCMD, a proper start script (so updates do not overwrite it), password, crossplay with Xbox, admins and uploading your own world.

2 min readUpdated on 7 October 2026Valheim

Valheim is light: for a group of friends without mods, 4 GB of RAM is fine.

1. Download it

# Windows
C:\steamcmd\steamcmd.exe +force_install_dir C:\valheim +login anonymous +app_update 896660 validate +quit

# Linux (as the steam user)
~/steamcmd/steamcmd.sh +force_install_dir ~/valheim +login anonymous +app_update 896660 validate +quit

2. The start script

The server ships with an example one, but every update overwrites it. Make a copy with another name and edit the copy.

Windows: copy start_headless_server.bat as start.bat and change the valheim_server line:

valheim_server -nographics -batchmode -name "My server" -port 2456 -world "MyWorld" -password "somekey" -public 1 -crossplay

Linux: copy start_server.sh as start.sh and change the ./valheim_server.x86_64 line the same way, leaving the surrounding export lines alone.

OptionWhat for
-nameThe name in the list
-worldThe world it loads (created if it does not exist)
-passwordAt least 5 characters, and it cannot be part of the server name
-public 1Show it in the community list (0 to hide it)
-crossplayLets Xbox and Game Pass players in. The server shows a join code

3. Ports

Valheim uses 2456 and 2457 on UDP:

# Windows (PowerShell as administrator)
New-NetFirewallRule -DisplayName "Valheim UDP 2456-2457" -Direction Inbound -Protocol UDP -LocalPort 2456-2457 -Action Allow -Profile Any

# Linux
ufw allow 2456:2457/udp

4. Worlds and admins

Worlds and admin lists live in:

  • Windows: C:\Users\Administrator\AppData\LocalLow\IronGate\Valheim\
  • Linux: ~/.config/unity3d/IronGate/Valheim/

To make yourself admin, add your SteamID64 (the 17-digit number of your profile) on a line of adminlist.txt and restart the server. In the game, F5 opens the console for kick, ban or save.

Want to upload your own world? On your PC it is in that same path, inside worlds_local: copy your world's .db and .fwl files into the server's worlds_local folder and put its name in -world.

5. Joining

In the game, Join Game → Add Server with YOUR_IP:2456. With -crossplay on, you can also join with the code the server shows.

Related articles

Back to the help centre

Can’t find what you need?

Open a ticket from your panel and we will answer in under 5 minutes.