Hosting a Valheim dedicated server

Valheim's server is native to Linux, free to download and light on resources. One machine can keep several worlds online so each group of Vikings has its own.

How do I install the Valheim server?

SteamCMD downloads it anonymously as app 896660, and the package includes valheim_server.x86_64 with an example start script.

adduser --system --group --home /srv/viking viking
sudo -u viking steamcmd +force_install_dir /srv/viking/game \
  +login anonymous +app_update 896660 +quit

Copy start_server.sh to a new name before editing it, because updates replace the original.

What goes on the launch line?

The world, its name in the browser, the port and a password. A full line for a private world with crossplay and tuned saving:

export SteamAppId=892970
./valheim_server.x86_64 -nographics -batchmode -name "Fjord Hall" -port 2456 -world Fjord -password "skaal4ever" -public 0 -crossplay -savedir /srv/viking/data -saveinterval 900 -backups 6 -backupshort 3600 -backuplong 21600

Which ports does it need?

UDP 2456 and 2457 for a server started on port 2456. Each further world needs its own pair, for example 2466 and 2467, and its own -savedir or world name.

ufw allow 2456:2457/udp comment "valheim fjord"
ufw allow 2466:2467/udp comment "valheim ashlands test"

How do admins, bans and whitelists work?

Through three text files in the save folder: adminlist.txt, bannedlist.txt and permittedlist.txt. Add one player ID per line; Steam IDs for Steam players and platform IDs shown in the server log for crossplay players. When permittedlist.txt has entries, only those players can join. Admins can open the in-game console and use commands like kick, ban and save.

Can I change the difficulty?

Yes, with world modifiers on the launch line. -preset picks a ready-made set such as casual, easy, hard, hardcore or immersive. -modifier changes a single setting, for example -modifier combat hard, -modifier deathpenalty casual or -modifier raids none. The settings stay with the world, so set them once when you create it.

How heavy is a Valheim server?

Light. It uses one or two cores, and memory grows from about 2 GB with the size of the explored world, reaching 4 to 6 GB on a long-running map. The game caps a world at ten players. Much of the physics runs on the client of whichever player is nearby, so player connections matter more than server CPU; a stable route and filtering of floods help everyone.

PlanWorldsMachine
One group, one world1 to 3ESSENTIAL-GAME-1
A community with seasonal worlds4 to 8ESSENTIAL-GAME-2
Valheim plus heavier survival gamesMixedESSENTIAL-S

ESSENTIAL-GAME-1 costs $43.20 a month and is sold in Singapore and Sydney as well as Europe and Canada.

How do mods work?

Through the community BepInEx loader, installed into the server folder. Some mods are server-side only, such as admin tools and automatic backups; most content mods need the same version on every client. Pin mod versions and keep the plain server files in a separate folder, because game updates often break mods for a few days.

Where are worlds stored?

In the worlds_local folder under the save directory, as a .db file with the terrain and buildings and a .fwl file with the metadata. Copy both together. The built-in backups protect against a crash; a nightly copy to another machine protects against a lost disk. The Transfer files with SFTP guide shows how players can download their world later.

Machines for Valheim worlds

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-GAME-1AMD Ryzen 5 5600X632 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-GAME-2AMD Ryzen 7 5800X864 GB2x 960 GB SSD NVMe1 Gbps unmetered$60.00
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
ESSENTIAL-3AMD Ryzen 9 5900X1232 GB2x 512 GB SSD NVMe1 Gbps unmetered$61.20

Valheim is light: one entry machine keeps several worlds online.

See all servers and prices

Related pages

Game server hosting

Ryzen X3D and Ryzen 5000 machines for Minecraft, Rust, CS2 and FiveM worlds that need steady tick rates.

Read more

Enshrouded dedicated server

Host Enshrouded for up to 16 players on Linux using Wine or Proton, with the right UDP ports, settings file, backups and a machine to match.

Read more

Transfer files with SFTP

Upload and download files over SSH with sftp, scp or a graphical client, and give outside users a locked upload folder.

Read more

Singapore data centre

South-East Asian hub with 43 models, a 25 TB monthly allowance on most machines and options up to unmetered ports.

Read more

Questions and answers

Does Valheim have a Linux dedicated server?

Yes. It is a free SteamCMD download, app 896660, with the native valheim_server.x86_64 binary.

Which ports does a Valheim server use?

UDP 2456 and 2457 for a server started on port 2456. Each extra world needs its own port pair.

How many players can join a Valheim server?

Ten players per world, which is the limit set by the game.

How do I let console players join my Valheim server?

Add -crossplay to the launch line. Players on other platforms then join through a relay service.

Where are Valheim worlds saved?

In the worlds_local folder of the save directory, as a .db file and a .fwl file that should always be copied together.