Valheim Dedicated Server Setup Guide
This guide covers getting your Valheim dedicated server running: configuring startup variables, connecting via Steam, and managing world save files.
Server Startup Configuration
All core server settings are controlled through the Startup tab in GPanel. The primary variables you need to set are:
| Variable | Description | Default / Example |
|---|---|---|
ServerName |
The name displayed in the server browser | My Viking Server |
WorldName |
The name of the world file to load or create | Midgard |
Password |
Password players must enter to join (see rules below) | shield123 |
PUBLIC_SERVER |
Set to 1 to list the server publicly in the server browser, or 0 to make it unlisted/private (connect via direct IP only) |
1 |
ENABLE_CROSSPLAY |
Set to 1 to allow Xbox and Game Pass players to join via crossplay. Set to 0 to restrict to Steam players only. |
1 |
BACKUP_INTERVAL |
How often (in seconds) the server automatically backs up world files | 1800 (30 min) |
BACKUP_COUNT |
Number of automatic backup copies to keep (oldest are removed when the limit is reached) | 4 |
Password Requirements
- The password must be at least 5 characters long.
- The password must not contain the server name (ServerName) as a substring.
- A password is required — you cannot leave it blank.
For example, if your ServerName is Viking Realm, you cannot use a password like VikingRealm2024 or viking. Use an unrelated word or phrase instead.
After updating your startup variables, restart the server from GPanel for the changes to take effect.
Server Ports
Valheim uses two UDP ports that must both be open and accessible:
| Port | Purpose |
|---|---|
| Game port | Primary connection port for players |
| Query port | Used by the Steam server browser to list the server |
Connecting to Your Server
Method 1: Steam Server Browser (Favorites)
This is the most reliable way to connect and avoids issues with the in-game server list not refreshing.
- Open Steam and click View in the menu bar, then select Game Servers.
- Click the Favorites tab, then click Add a Server.
- Enter your server's IP and query port in the format
your.ip.address:queryport. Check the Network tab in GPanel for your assigned query port. - Click Find Games at this Address, then Add Selected Game Server to Favorites.
- Your server will appear in the Favorites list. Double-click it to connect, or right-click and choose Connect.
Method 2: Direct Connect In-Game
- Launch Valheim and click Start Game, then select a character.
- On the server list screen, click Add server at the bottom.
- Enter your server's IP and game port in the format
your.ip.address:gameport. Check the Network tab in GPanel for your assigned game port. - Click Connect and enter the server password when prompted.
World and Save File Locations
Valheim stores world data in two files per world. Both files must be present for the world to load correctly:
<WorldName>.fwl— World metadata file (seed, name, settings)<WorldName>.db— World data file (terrain, structures, progress)
These files are located in the following path on your server's file system:
/.config/unity3d/IronGate/Valheim/worlds_local/
You can access them via SFTP — see How to Upload Files via SFTP for instructions.
Uploading an Existing World
To transfer a world from your local game or another server:
- Locate your local Valheim world files. On Windows (Ashlands update and later) they are at:
%USERPROFILE%\AppData\LocalLow\IronGate\Valheim\worlds_local - Connect to your server via SFTP.
- Upload both the
.fwland.dbfiles to/.config/unity3d/IronGate/Valheim/worlds_local/on your server. - Set the
WorldNamestartup variable to match the filename (without extension) of the files you uploaded. - Restart the server.
Backing Up Your World
Download both world files via SFTP regularly. Keeping local backups protects against accidental deletion or world corruption.
Related Articles
- Valheim Mod Installation Guide — BepInEx, Thunderstore, Valheim Plus, and popular mods
- Valheim Troubleshooting — Common issues and solutions
- How to Find Your Server IP and Port
- How to Upload Files via SFTP