21+ years in hosting · Jaipur, India · INR billing with 18% GST · 24/7 email support
Blog · WebJi® India

Valheim Dedicated Server Setup

Quick answer

To set up a Valheim dedicated server, install SteamCMD on a Linux VPS, run app_update 896660 validate, and start the server with a name, world and a password of at least five characters. Open UDP 2456–2458, run it under systemd, and back up both world files before anyone joins.

For Indian Valheim groups who want a world that stays online when the host's PC is off, set up on their own Linux VPS.

✓ In business since 2005
✓ INR + GST billing
✓ 24/7 Email Support — avg reply < 60 min
GuideWebJi®
knowledge
Read time
5 min
Sections
9
Updated
14 Nov 2026
Written by
WebJi® team

What a Valheim dedicated server needs

A Valheim dedicated server is a Linux process installed anonymously with SteamCMD (app ID 896660), run as a service, reachable on UDP ports 2456–2458 and backed up on a schedule. No Steam account or game licence is needed on the server itself.

  • OS: 64-bit Ubuntu 22.04 or 24.04 LTS, or another distro where SteamCMD runs.
  • Access: a VPS with root or sudo over SSH; this is a shell job, not a cPanel one.
  • Network: a public IPv4 address and the UDP ports open in both the server firewall and any provider firewall.
  • Resources: see the RAM table below; NVMe storage avoids save-time stutter.

How much RAM and CPU a Valheim server needs

A vanilla world for up to ten players runs on about 4 GB RAM and two CPU cores; modded worlds need 6–8 GB or more. Iron Gate does not publish a fixed player-to-RAM table, so treat these as working figures, and give a big, long-explored world extra headroom.

Working Valheim server sizing
WorldRAMCPUNotes
Vanilla, up to 10 players4 GB2 coresMore RAM helps large bases and long-explored maps
Modded (BepInEx)6–8 GB2+ coresEach mod adds memory
Heavily modded or very large map8 GB+Fast single coreSingle-core speed matters more than core count

Sizing logic for other workloads is in how much RAM a VPS needs.

How to install the Valheim server with SteamCMD

Create a non-root user, install SteamCMD, then run app_update 896660 validate into a folder; the download is roughly 2 GB. On Ubuntu, SteamCMD lives in the multiverse repository and needs 32-bit libraries.

# As a sudo user
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update && sudo apt install steamcmd
sudo adduser --disabled-password --gecos "" valheim

# As the valheim user
sudo -iu valheim
/usr/games/steamcmd +force_install_dir /home/valheim/valheim \
  +login anonymous +app_update 896660 validate +quit

The install folder contains start_server.sh and Iron Gate's dedicated-server manual; read both, because the script sets the library path and Steam app ID the binary expects. Re-run the same SteamCMD line after every game patch, because players cannot join a server on an older version.

Start the server once and check the password rules

Start the binary with a server name, port, world name and password; the password must be at least five characters and must not appear inside the server name, or the server refuses to start.

cd /home/valheim/valheim
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
export SteamAppId=892970
./valheim_server.x86_64 -name "Jaipur Vikings" -port 2456 \
  -world "Dedicated" -password "longpass123" -public 1
  • -world: the file name of the world without extension; a new name creates a new, empty map.
  • -public 1: lists the server in the community browser; use 0 to join by IP only.
  • -crossplay: lets Xbox and Game Pass players join through a join code using the PlayFab relay.

Stop it with Ctrl+C so the world saves cleanly. The log should show your world name and that the game server connected.

Open the Valheim ports and prove they are open

Allow UDP 2456–2458 in the server firewall, confirm the process is listening, then test from a network outside your own. If you change the base port, the range moves with it (for 2556, open 2556–2558).

  1. Run sudo ufw allow 2456:2458/udp and sudo ufw reload.
  2. Check sudo ss -lunp | grep valheim shows the server bound to the game ports.
  3. Ask a friend to join by IP from a different network, such as a phone hotspot.

A timeout while the process is listening means a provider firewall or wrong port, not a crashed server. Keep SSH protected too; fail2ban blocks repeated login attempts.

Run Valheim as a systemd service

A server started in an SSH window dies when the session closes; a systemd unit starts it at boot, restarts it after a crash and sends Ctrl+C (SIGINT) on stop so the world saves. Save this as /etc/systemd/system/valheim.service:

[Unit]
Description=Valheim dedicated server
Wants=network-online.target
After=network-online.target

[Service]
User=valheim
WorkingDirectory=/home/valheim/valheim
Environment=LD_LIBRARY_PATH=/home/valheim/valheim/linux64
Environment=SteamAppId=892970
ExecStart=/home/valheim/valheim/valheim_server.x86_64 -name "Jaipur Vikings" -port 2456 -world "Dedicated" -password "longpass123" -public 1
KillSignal=SIGINT
TimeoutStopSec=60
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Then run sudo systemctl daemon-reload and sudo systemctl enable --now valheim, and watch the log with journalctl -u valheim -f.

Back up the Valheim world before anyone joins

A Valheim world is two files with the same name, Dedicated.db and Dedicated.fwl, stored in ~/.config/unity3d/IronGate/Valheim/worlds_local/ for the user running the server; copy both together or the world fails to load or reverts. Saves from before the 2022 cloud-save update sit in a folder named worlds instead.

  1. Stop the service so the save flushes: sudo systemctl stop valheim.
  2. Archive both files: tar czf ~/valheim-$(date +%F).tar.gz -C ~/.config/unity3d/IronGate/Valheim/worlds_local .
  3. Start the service again and copy the archive off the server.
  4. Schedule the three steps with a nightly cron job and keep the last seven archives.
  5. To restore, stop the service, put the matching .db and .fwl pair back and start it.

Recent server builds also keep their own rotating backups of the world; the bundled manual lists the save-interval and backup options for your version. Keep an off-server copy anyway; a backup on the same disk is not a backup.

Five failures that stop a first join

Most first-join problems are a short password, a busy port, a mismatched world name, a closed firewall or a save copied while the server was running.

Common Valheim server problems and fixes
SymptomCause and fix
Server exits immediatelyPassword under five characters or contained in the name; change it and restart
“Failed to bind” in the logAnother process holds the port; find it with ss -lunp and stop it
Players join an empty map-world does not match the .db file name, or files are in the wrong folder
Friends time outUDP 2456–2458 blocked in ufw or the provider firewall
Version mismatchServer not updated after a game patch; re-run SteamCMD and restart

If SSH itself refuses connections, see SSH connection refused on a VPS.

Where to host a Valheim server in India

A Linux VPS with root access, at least 4 GB RAM and open UDP ports is all this guide needs; WebJi® Valheim server hosting on a KVM VPS starts at ₹499 a month before 18% GST. Checkout confirms the current price.

Details are on Valheim server hosting, and other titles on game server hosting. Running costs across games are compared in game hosting cost in India. Stuck on a step? Email support@webji.services with the log line and your port-check output; replies are in Hindi or English, with an average first reply under 60 minutes.

FAQ

Frequently asked questions

Can I move my single-player Valheim world to the server?

Yes. Copy both the .db and .fwl files of the world from your PC's worlds_local folder into the server's worlds_local folder, set -world to that name, and restart. Turn off Steam cloud for that world first so an older copy does not overwrite it.

Does the world keep running when everyone logs off?

The server process keeps the world available, but Valheim only simulates the areas around connected players, so crops, smelters and base raids do not progress while nobody is online. Leave the service running so friends can join at any time.

Can Xbox players join a server on a Linux VPS?

Yes. Start the server with -crossplay; the log then shows a join code that Xbox and Game Pass players enter. Steam players can still join by IP or join code.

Do I need to buy Valheim to run a dedicated server?

No. The dedicated server (app 896660) installs with an anonymous SteamCMD login. Each player still needs their own copy of the game to connect.

Last editorial update: 15 November 2026. Prices follow the dated sources on this page; checkout confirms current charges.

WebJi® since 2005

Ready to get started with WebJi®?

Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.