Guides

Valheim Ultimate Dedicated Server Guide

Valheim is an amazing viking journey through a hostile world made so much better with friends. One of the beautiful things about Valheim is that single player can become multiplayer at anytime by inviting other players into your world and vice-verse. This of course requires your computer to be on and you to be playing, but what about when everyone wants to build cooperatively but not have the host on? Then it’s time for a dedicated server.

You could rent a dedicated server for a myriad of hosts. It’s simple and some even let you host mods. If you do that you’re basically done; rent the server, follow the server hosts guide and voila. Yet you’re now stuck paying for a server that you could play this month or you could not and often times these hosts can have data export restrictions making your game world… their game world.

So setting up your own server may be an option, especially if you want persistence and full control over the game world. Plus the assurance that since you’re running it, you know if it’s up or down. You can put it on your NAS (network attached storage), a spare PC or in the cloud.

Either way, we’ve got everything you need to know about setting up your own server and what to do once it’s running. In this guide we’re going to go over these major points:

  • Picking the Hardware for your Server
  • Picking the Docker Image
  • Deciding the Setup Options
  • Community Considerations
  • The Value of a Personal World Storage System
valheim mistlands neutral race
Setting up your server correctly can avoid rebellion.

Valheim Server Hardware Requirements

Valheim is a mostly client-side game so the server requirements aren’t steep. Damage, health, etc. are all tracked client-side. The server-side tracks the client’s position and reports various stats to the other connected clients. At a minimum you’ll need a dual-core setup of about 4ghz and 4gb of RAM. The best setup would be a dual-core 5ghz system with 8gb+ of RAM.

That’s not a lot with modern quad-core CPUs being standard everywhere and 16GB of RAM being common, but it’s also important to note that this means it can run well on a NAS (network attached storage) using something like TrueNAS or Synology. It can also run on some older hardware.

For cloud based setups, you can get a virtual private server (VPS) with those specifications for very little as well. Valheim can also run on Amazon EC2 (https://github.com/rileydakota/valheim-ecs-fargate-cdk) and for the technology advanced you can even spool it up on Kubernates (manifest here: https://github.com/Addyvan/valheim-k8s).

You have to balance convenience and cost. If you do setup the server at home and have a dynamic IP, you’ll need to get some way to keep a consistent way to share your server information with your users. If you rent a cloud server you’ll have to pay the hosting cost, although many VPS hosts that meet what you need are only a few dollars per month.

Picking the Valheim Docker Image

There’s two Valheim docker images to choose from.

https://hub.docker.com/r/lloesche/valheim-server

https://hub.docker.com/r/mbround18/valheim

There’s the lloesche docker image which is the advanced version and mbround18 which is the vanilla version. Both versions support BepInEx-Valheim however the mbround18 version specifically supports it as an optional addition that you add whereas lloesche supports it out of the box and baked into the image.

The mbround18 version comes with a simple setup and simple configuration. The lloesche distro has a simple setup as well (they can both be brought up with docker compose). They both host the same Valheim server code, although mbround18 uses something called “Odin” to monitor the server and lloesche uses “Supervisor.” The Supervisor control settings can be exposed to the web, although only over http:// and only using simplified passwords so it might be good to have on all the time.

If you’re planning to play vanilla and do no modding, I’d go with mbround18. If you’re going to mod, I’d go with lloesche.

Why Docker Containers?

There is no reason to setup the default Valheim without using the docker containers. The server needs some kind of monitor over it to reboot it, save backups, etc. mbround18 is installable outside of Docker if you’d like to go the full custom install route.

Server Setup Options

So the first thing to do is to make sure to turn on crossplay. This just makes sure that players on the Windows Store version can connect. You can do it in mbround18 as an config setting (Crossplay = True) and you can pass the command line argument “-crossplay” to lloesche’s distro via SERVER_ARGS=”-crossplay” in the valheim.env file.

For mbround18, the only other settings are to make sure the password and world name is set and that you’ve opened your ports.

For lloesche, you can decide if you want plugins enabled via BEPINEX=true along with the option for Valheim Plus. If you do turn on Valheim Plus everyone must have it to connect.

Modding Your Server

If you’re using the lloesche distro and have set BepInEx on, then you can drop your mods in /config/bepinex/plugins. The config files will be in the bepinex folder. There’s some major caveats with plugins:

  • Very few plugins are server-side. Most plugins don’t need a server-side version to even work.
  • The major plugins that impact server are ones like FuelEternal to turn off fuel consumption, LetMeSleep to let someone else sleep and Discord Connector to give more verbose Discord Updates. The server doesn’t manage much, so server-side mods don’t get a lot of room to shine.
  • Some plugins, like Valheim Plus, require the client to have the plugin to connect. This is a consideration as some community members may not want to mod their game to connect.
  • It can be harder to debug server plugins. Make sure to backup your world before you install any.

Valheim Community Considerations

The harsh reality of Valheim is that client-side mods and the client control the game. This means that folks can grief your world rather easily with tools that operate on the size of islands that can destroy everything everyone has built. So with that said, here’s some major tips to consider to make sure everyone can have a good time:

  • The major bases and hubs should be warded when not being constructed on. This avoids accidental destruction and can solve a lot of issues. Ward mods can also help control spawns and events in the ward area (server-side). Since the player who set the ward down can control doors, it’s advisable to build bases with as few doors as possible when warding.
  • Backups should be turned on (they are automatically) and you should be ready to restore from a backup. Personal player progress is no lost; player save files are local. The only thing you’re reverting the world build and the world mesh (the land).
  • Be sure to configure the admin.txt to let you ban users if people you don’t know are allowed on your server (i.e. a Discord community given the Valheim info). If a user starts ban evading, consider changing the game’s port so they can’t find the game again.
  • Organization, organization, organization. As server owner it is your obligation to make sure that players have the space to organize items. There isn’t so many items in the game you can’t organize them into individual chests. Farm for the chests, make signs for the chests.

Building Considerations

When building, you’ll also want to consider some things:

  • You should always be clear community chests are for everyone and have no exchange rate. Chests should be freely open to everyone. If someone wants to store items, they can store items in their own personal world.
  • You should be clear on progression guidelines: is the server an open world where anyone can go do anything and the boss progression doesn’t matter? Is it everyone working together from scratch? Everyone must agree together because a single player loading in a character that’s in Mistlands will immediately power-run the rest of the group through all of the content.
  • You should set building guidelines: what goes where and how. Be clear. Set expectations. Otherwise arguments will break out about building areas. I personally believe players should all be given their own individual areas to build in within a base, however, that’s not always possible.
  • Have one set of official portal logic. You can’t have every portal in the game in one house; you’ll need to have portals linking areas together. Make it make sense and be consistent, otherwise no one will be able to get anywhere. For example, you could have portals to every main base in your largest base. Then each of those bases could have portals to areas around them. You could have one portal that goes to all the portals for a specific biome. You come up with the rules!

Modding Considerations

Lastly, be clear on modding! Client-side mods can let players build massive lines of crops, take metal through portals and other things. Be clear on what is and isn’t OK. For instance, on my server as long as a client-side mod doesn’t create resources that weren’t originally in the world, then they’re okay with me and unless everyone agrees on the portal mod, we won’t use it, although I’m fine with transferring it through a personal world (see below) since it’s still a laborious intentional process. Just not the Valheim version with the boat.

Personal World Storage

Something that a lot of players don’t understand is that if you do just only play with friends, you still can have your own personal world. This means a few things. You can, right from spawn, walk a few feet out and build a small extremely safe storage hut. This means you can store things no one on the server can touch, even if you farmed them on the server. You can also use console commands (since it’s a single player world) to make your storage house perfect: full black metal chests, signs, etc. without having to farm the materials.

Another advantage to having personal world storage is you can transfer large quantities of building materials around the server through your personal world. There reaches a point in the game if you want to do a large build you’ll need 1000+ stone and wood, along with Iron which can’t go through portals.

This can be really annoying if you’ve loaded up the boat with tons of metal only to get there and run out. Well, if you go to your personal world storage and store the Iron, then load back into the server and take the portal, then load back into your storage and grab it then back to the server – voila, you just transferred the iron without having to mod your game. This is how you can easily transfer Iron through a portal.

The Console Commands

There’s some other things I think personal worlds are good for, like setting your skills. You may go on a night of adventuring and die a lot and making your skills go into the trash. Joining late to the game may mean you have lots of good gear, but no skills to go with it. I think it’s personally okay to fix your skills in single player since the online experience isn’t the kindest to what could be your personal character.

Those are decisions each player will have to make on what is and isn’t right for them though. I hope the following was helpful in setting up your server and much success on your viking adventure. There’s also always Rust if you’re interested.

David Piner, an accomplished video game journalist since 2001, excels in developing comprehensive guides and engaging content to enrich the gaming experience. As the esteemed former Managing Editor at TTH (as David "Xerin" Piner) for over a decade, David established a strong reputation for his perceptive analysis, captivating content, and streamlined guides. Having led skilled teams of writers and editors, David has been instrumental in producing an extensive collection of articles, reviews, and guides tailored to both casual and hardcore gamers aiming to enhance their skills. Dedicated to player-centric content, David meticulously crafts guides and articles with the players' interests in mind. He is a proud member of OUT Georgia and fervently champions equity and equality across all spheres.