Valheim Dedicated Server: Set Up with a Panel or Docker

Short answer: To run your own Valheim dedicated server, you need a Linux server (VPS or dedicated) with at least 4 GB RAM and UDP ports 2456 and 2457. The fastest way is a web panel like ServerSheriff: connect your server, pick Valheim, start. If you prefer to do everything yourself, use Docker Compose. This guide covers both.

Which way fits you?

With ServerSheriffBy hand with Docker
Command line needednoyes
Server setupdone by the panelyou install Docker
Start, stop, consolein the browservia SSH
Backupscreate, restore and schedule in the panelcontainer backs up locally, the rest is on you
Updates"Update on start" + scheduled restartcontainer checks itself, you pull the image
More games and servicessame panela separate setup each

Just want to play with friends? Take path 1. Want to see what happens under the hood? Path 2.

Requirements (both paths)

  • Your own Linux server from any provider. For ServerSheriff it must be a freshly installed Debian 13 server.
  • Hardware: at least 2 CPU cores and 4 GB RAM, better 4 fast cores and 8 GB RAM. The Valheim server uses almost 3 GB even when idle. A few high-clocked cores beat many slow ones.
  • Disk: the server itself is about 1 GB. Add room for backups.
  • Ports: UDP 2456 (game) and UDP 2457 (Steam query).

You don't need to own the game on the server. The Valheim dedicated server is free and downloads from Steam.

Path 1: Valheim server with ServerSheriff

ServerSheriff is a web panel for game servers. You bring your own server, the panel sets it up, and you manage everything in the browser. ServerSheriff does not rent out servers.

Step 1: Create an account

Sign up for ServerSheriff for free. The Free plan costs nothing and needs no credit card. It includes 1 node (your server) and up to 5 applications. Game servers, databases, SFTP accounts, Docker stacks and web server domains all count as applications.

Step 2: Connect your server as a node

A "node" is your Linux server inside the panel.

  1. Click Create node.
  2. Enter your server's IP address, SSH port and the root password.
  3. The panel connects and installs everything it needs, including Docker. You don't type a single command.

Use a freshly installed Debian 13 server with nothing else running on it.

ServerSheriff only needs the root password for this setup. After that, the panel logs in with its own SSH key as the user control-panel. Once the node shows as ready, you can change the root password. For more hardening, see How to secure a game server.

Step 3: Create the Valheim server

  1. Click Create game server and pick Valheim.
  2. Assign CPU, memory (at least 4 GB) and disk.
  3. Fill in the Valheim settings:
    • Server Name: how your Valheim server shows up in the list.
    • World Name: your world's name (default: Dedicated).
    • Server Password: at least 5 characters, not part of the server name and not the same as the world name. Leave it empty and the panel generates one on the first start. You then find it under Startup in the Server Password field.
    • Listed In Server Browser: turn off if only friends should join by IP.
    • Crossplay: turn on if Xbox or Game Pass players join.
    • Optional: World Preset and World Modifier for difficulty and rules.
  4. Start it. You can watch progress live in the console. The first start takes a few minutes while the server downloads from Steam.

On ServerSheriff, every game server runs in its own Docker container and not as root. The panel publishes the ports (default: 2456 and 2457/UDP) for you. If your provider has a firewall in its control panel, open those two ports there yourself. If your server is at home behind a router, set up port forwarding.

Step 4: Schedule backups, restarts and updates

  • Backups: create and restore with one click.
  • Schedules: run backups, restarts or commands at fixed times. A schedule can also clean up old backups.
  • Updates: leave Update At Start on for the game server (it is on by default). It then fetches the latest version from Steam every time it starts. Combined with a nightly scheduled restart, Valheim stays up to date on its own. For an update right away, just restart the Valheim server.

A good start: every night, first a backup, then a restart.

Tip: turn on two-factor login in the panel. Whoever has your panel account controls your servers.

→ Try ServerSheriff for free

Path 2: Valheim server by hand with Docker

Valheim dedicated server with the ServerSheriff panel

This path uses the community image ghcr.io/community-valheim-tools/valheim-server. Iron Gate does not publish an official Docker image. You need SSH access and some command-line experience.

Install Docker

Install Docker Engine with the Compose plugin using the official Debian guide. Then check with docker compose version.

Folders and settings

mkdir -p ~/valheim-server/config ~/valheim-server/data
cd ~/valheim-server
  • config holds your worlds (worlds_local), backups and admin lists. This is the folder that matters.
  • data holds the server files so they aren't downloaded again on every restart.

Create valheim.env:

SERVER_NAME=Vikings next door
WORLD_NAME=Midgard
SERVER_PASS=a-long-password
SERVER_PUBLIC=false
TZ=Europe/Berlin
  • SERVER_PASS needs at least 5 characters, or the Valheim server won't start.
  • For an existing world, WORLD_NAME must match the folder name in worlds_local exactly.
  • SERVER_PUBLIC=false hides the server from the public list. Friends connect with Join IP.

Protect the file, since it contains the password: chmod 600 valheim.env

compose.yaml

services:
  valheim:
    image: ghcr.io/community-valheim-tools/valheim-server
    container_name: valheim-server
    cap_add:
      - sys_nice
    volumes:
      - ./config:/config
      - ./data:/opt/valheim
    ports:
      - "2456-2457:2456-2457/udp"
    env_file:
      - ./valheim.env
    restart: always
    stop_grace_period: 2m
  • stop_grace_period: 2m gives the server time to save the world when stopping. Don't shorten it.
  • The project's example file also publishes port 9001/TCP (Supervisor web UI). It's off by default, so we leave the port out.

Start

docker compose up -d
docker compose logs -f

The Valheim server is ready when the log shows Game server connected. Ctrl + C only stops the log view.

Firewall warning: Docker publishes ports past ufw. A port in compose.yaml is open even if ufw doesn't allow it. More in How to secure a game server.

Backups and updates on the Docker path

  • The container backs up worlds_local every hour to config/backups and keeps backups for 3 days (BACKUPS_MAX_AGE changes this).
  • These backups live on the same server. Copy them to a second machine regularly, e.g. with rsync.
  • The container updates Valheim on its own when nobody is online. Update the image with docker compose pull && docker compose up -d.

Connect

In the game: Join Game → Join IP, then enter your-server-ip:2456. This works even if the server isn't publicly listed. On ServerSheriff, grab the exact address in the panel with Copy address. Every step, plus the password and a checklist, is in How to Join a Valheim Server.

Move an existing world

  1. Stop the server.
  2. On your Windows PC, worlds are in C:\Users\<Name>\AppData\LocalLow\IronGate\Valheim\worlds_local.
  3. Copy the world folder (for older worlds the .db and .fwl files) to the Valheim server:
    • ServerSheriff: upload to save/worlds_local/ in the panel's file manager, or via SFTP to /gameserver/gameserver-<ID>/valheim-<game-ID>/server/save/worlds_local/. Start the server once beforehand so the folder exists.
    • Docker path: to config/worlds_local/.
  4. Set World Name (or WORLD_NAME) to the world's name and restart.

Careful with old worlds: Valheim 1.0 converts older worlds to a new format the first time they're opened. This is one-way. Make a copy first.

Become admin

Valheim dedicated server: become admin

Add your SteamID64 to adminlist.txt (one per line). You can see your ID in-game with F2. As admin, F5 opens the console, e.g. for kick or ban. Newer game versions need the -console launch option in Steam.

Common mistakes

  • Server won't start: password shorter than 5 characters, same as the world name, or part of the server name.
  • World is empty or new: world name doesn't match the folder name in worlds_local.
  • Friends can't find the Valheim server: it isn't publicly listed. Use Join IP.
  • Nobody can join: UDP 2456–2457 closed on the router or in the provider firewall.
  • Server lags: not enough RAM. Below 4 GB it gets tight.

FAQ

Do I need Valheim on the server? No. The dedicated server is free. Your players need the game.

How many players fit on a Valheim server? Valheim allows up to 10 players per server.

Does it work with Xbox or Game Pass players? Yes, with crossplay. In ServerSheriff it's a switch on the game server. Some mods don't work with crossplay.

Can I run other games on the same server? Yes, if there's enough RAM. In ServerSheriff, just add more game servers on the same node. The Free plan includes up to 5 applications.

Your Valheim server in a few clicks

No Docker, no config files, no SSH: connect your Debian server to ServerSheriff and start Valheim in the browser. Backups, schedules, updates and console included. Free for one server.

With ServerSheriff

ServerSheriff is a web panel for your own server. Connect it once, then manage game servers, databases and Docker in your browser. The Free plan costs nothing, needs no credit card and includes 1 node and up to 5 applications.

→ Try for free · Manage game servers and databases with ServerSheriff