Launch sale20% off everything — celebrating the launch of GHosting!
← All guides

How to Host a Valheim Dedicated Server (Self-Hosted vs Rented)

Valheim co-op has one built-in heartbreak: in a normal peer-hosted game, the world only exists while the host is online. Your friends can't sail without you, and if the host's PC crashes mid-boss, everyone drops. A dedicated server fixes that — the world runs around the clock on its own machine, and everyone comes and goes as they please.

You have two ways to get one: run it yourself, or rent it. Both are legitimate. Here's what each actually involves.

Option 1: self-hosting

Valheim ships a free dedicated server app — you'll find it in your Steam library as "Valheim Dedicated Server". To run it well you need:

  • A machine that stays on. An old desktop or a mini PC works. Plan for at least 4 GB of RAM for the server process, more with mods or a well-explored world.
  • Port forwarding. Valheim uses UDP ports 2456–2458 by default. You'll need to forward them on your router to the machine running the server.
  • A stable address. Home IPs change; either set up dynamic DNS or re-send your friends the new IP every time your ISP rotates it.

The setup itself is a few steps: install the server app, edit the launch script with your server name, world name and a password (5 characters minimum), open the ports, and share your public IP with your group.

The gotchas nobody mentions

  • CGNAT. Many ISPs — especially on fiber and mobile connections — put you behind carrier-grade NAT, which means port forwarding is simply impossible. If you can't get a public IPv4 address, self-hosting at home is off the table without tunneling workarounds.
  • Electricity. A desktop idling 24/7 at 60–100 W costs real money in most of Europe — often more per month than a rented server, before you count your time.
  • Backups. Your world lives in a couple of files on that one machine. If the disk dies, hundreds of hours die with it. Copy the world files out regularly — with the server stopped, or the save can corrupt.
  • Updates. When Valheim updates, clients update automatically — your server doesn't. Until you update it, nobody can join.

Mods

Most Valheim mods run on the BepInEx loader. The rule that trips people up: the server and every client generally need the same mods at the same versions. Decide as a group before you start, because retrofitting a modded stack onto a live vanilla world is where save files go to die.

Option 2: renting

A rented server is the same dedicated server binary running in a datacenter: static address, datacenter bandwidth, DDoS protection in front of it, automatic backups, and a panel instead of a launch script. You trade a monthly fee for never thinking about NAT, uptime or your electricity bill.

The honest math: if you have a spare machine, a real public IP, and you enjoy tinkering, self-host — it's genuinely fine. If any of those is missing, renting is usually cheaper than it looks once you price in power and weekends lost to router settings.

If you land on renting, our Valheim server plans start small and scale with your group — online in minutes, cancel anytime.