Valheim Dedicated Server: Admin Commands & Hosting Guide

Data Verified: May 2026

The ultimate Valheim server guide. Discover essential devcommands, server config parameters, and the hardware requirements for smooth 10+ player communities.

Default file locations

Default installation paths for Valheim dedicated servers installed via SteamCMD.

Windows

C:\valheimserver\

Linux

/home/steam/valheimserver/

Pro-Tip: Always stop the server completely before editing configuration files, or the server will overwrite your changes upon restart.

Default ports for port forwarding

Open these on your router and firewall before exposing the server to the internet.

Default ports for Valheim
ServiceProtocolPort
Game PortUDP2456
Query PortUDP2457
RCON / Telnet-N/A

Quick start: launch your Valheim server

Copy-paste these two commands to install and start a Valheim dedicated server. Tested against SteamCMD on a fresh box.

Step 1, Install via SteamCMDSteam App ID 896660

steamcmd +force_install_dir /home/steam/valheim +login anonymous +app_update 896660 validate +quit

Step 2, Launch the Valheim server

cd /home/steam/valheim && ./start_server.sh -name "My Valheim Server" -port 2456 -world "Dedicated" -password "secret123" -public 1

Note: On Linux, edit start_server.sh and set the password/world before first launch.

Step 1, Install via SteamCMDSteam App ID 896660

steamcmd +force_install_dir "C:\valheim" +login anonymous +app_update 896660 validate +quit

Step 2, Launch the Valheim server

C:\valheim\valheim_server.exe -nographics -batchmode -name "My Valheim Server" -port 2456 -world "Dedicated" -password "secret123" -public 1

Note: Password must be at least 5 characters and cannot contain the world or server name.

Starter start_server.sh

A working baseline config with sensible defaults for Valheim. Copy it, tweak the marked values, and drop it into your server directory.

start_server.shStarter config · Valheim
#!/bin/bash
# Valheim dedicated server launcher
# Place in your Valheim server directory, chmod +x, then run.

export templdpath=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
export SteamAppId=892970

./valheim_server.x86_64 \
    -name "My Valheim Server" \
    -port 2456 \
    -world "Dedicated" \
    -password "secret123" \
    -public 1 \
    -savedir "/home/steam/.config/unity3d/IronGate/Valheim" \
    -crossplay

export LD_LIBRARY_PATH=$templdpath

Frequently asked questions

Browse all games →

Host your own Valheim server

All hosting guides →

Step-by-step install and deploy walkthroughs (panels, ports, RAM sizing). Pair these with the command reference above.

Reference and hosting hub for Valheim

All reference articles →