How to Make a Valheim Server

  • 6 min read
  • Updated 12 June 2026
  • ESAGAMES Team

Run an always-online Valheim dedicated server so your crew can play any time — install with SteamCMD, set your world and password, optionally add BepInEx mods. Plus the managed route.

A dedicated Valheim server keeps your world online 24/7 — no more "the host has to be on". You install it with SteamCMD (app 896660) and start it with a world name and password.

You can self-host on a small VDS, or use managed Valheim hosting with a panel that handles updates, mods and backups.

You can follow this guide on your own hardware. For a world that stays up without a PC left running at home, our Valheim server hosting offers instant setup in Frankfurt and a web panel for worlds, mods and backups.

What you'll need

  • SteamCMD installed, and Steam app 896660 downloaded.
  • A world name and a server password of at least 5 characters (different from the server name).
  • UDP ports 2456–2457 open.
  • (Optional) BepInEx if you want mods — server and clients must match.

Set up a Valheim dedicated server

  1. Step 1: Install SteamCMD

    SteamCMD downloads the dedicated server files. Install it on your server first.

  2. Step 2: Download the Valheim server (app 896660)

    Use SteamCMD to install the Valheim dedicated server.

    steamcmd +login anonymous +app_update 896660 validate +quit
  3. Step 3: Start with a world and password

    Launch the server with a name, port, world name and password (the password must be at least 5 characters and different from the server name).

    ./valheim_server.x86_64 -name "My ESAGAMES Server" -port 2456 -world "Dedicated" -password "secret123" -public 1
  4. Step 4: Open the ports

    Valheim uses UDP 2456–2457. Make sure they're open and reachable (handled for you on managed hosting).

  5. Step 5: Add BepInEx mods (optional)

    For mods, install BepInEx on the server and add mods like Valheim Plus. Server and clients must run matching mods.

  6. Step 6: Connect and play

    In Valheim, use Join > Connect by IP with your address and port, enter the password and sail out. Your world stays online 24/7.

Valheim best practices

  • Always online

    A dedicated server means progress is never lost when the host logs off — play any time.

  • Back up your world

    Schedule backups so a troll or a crash never costs you your longhouse.

  • Anti-DDoS

    Filtering keeps your server reachable with no boots or downtime.

Common problems & fixes

Server won't start

The password is too short or matches the server name. Use a 5+ character password that differs from the name.

Friends can't find the server

Make sure UDP 2456–2457 are open, and try connecting directly by IP if the public list is slow.

Mods cause crashes or rejections

Every player must run the exact same mods as the server. Mismatched mods cause connection failures.

My old world won't load

Upload both the .db and .fwl files for the world to the worlds folder — you need both.

Frequently asked questions

How do I make a Valheim server?

Install SteamCMD, download the Valheim dedicated server (app 896660), start it with a world name and a password of at least 5 characters, then connect by IP.

What ports does Valheim use?

Valheim uses UDP ports 2456–2457 by default. Make sure they're open.

How many players can join?

Valheim officially supports up to 10 players per world; our plans handle that comfortably with headroom for mods.

Can I add mods?

Yes — install BepInEx and add mods like Valheim Plus. The server and all clients must run matching mods.

Can I move my existing world over?

Yes — upload your existing .db and .fwl save files to the server's worlds folder and continue where you left off.

Is running a Valheim server allowed?

Yes — the dedicated server is provided officially via SteamCMD. You must own a legitimate copy of Valheim.

What ports does a Valheim dedicated server use?

UDP 2456 for the game and 2457 for the query, with some setups also using 2458. Forward 2456-2457 so the server is reachable and appears in the browser.

How much RAM does a Valheim server need?

It's light — 2-4 GB comfortably runs a small group, and 4-8 GB covers a larger world with several players. A big, long-explored world uses more as the map data grows.

How do I change the world settings on a Valheim server?

Use the built-in World Modifiers via the -preset, -modifier and -setkey startup flags — no mods needed. See our best Valheim server settings guide for the presets and the popular portal-ore tweak.

Fixes for when it goes wrong

Knowledge-base fixes that pair with this guide — the errors people hit after setup.

More guides

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.