Iron Gate has made it relatively simple to set up a dedicated server for Valheim so that you can join your friends on a co-op journey. The entire process is done with the help of a tool called Valheim Dedicated Server that owners of the game can download alongside the main game. In this guide, we’ve detailed everything there’s to know about how to set up a dedicated server in Valheim.
Valheim Dedicated Server Setup
In order to set up a dedicated server, the first thing that the players need to do is to download the Valheim Dedicated Server app on Steam. It should be available for everyone who bought the game – look for it in the Steam Library. After downloading the app, don’t launch it right away as there are some settings that must be tweaked first.
The first order to business is to go to the installation directory of the Valheim Dedicated Server app. By default, it’s located at:
C > Program Files (x86) > Steam > steamapps > common > Valheim Dedicated Server
Once again, remember that this is the default directory. Players who’ve got Steam installed on another drive will need to open that drive instead. After opening up the folder, players will need to copy a file named “start_headless_server.bat” to a safe location. It’s always better to keep a copy in case things go sideways.
After making a copy of the aforementioned file, players need to right-click on the original file and edit it with Notepad or Notepad++. After the file is opened in the Notepad, players need to find a line that starts with something like “start valheim_server ….” There are a few things here that players need to change in order to ensure that everything goes smoothly.
-name “My Server”
This is the name of the dedicated server that players are creating. It needs to be unique and mustn’t conflict with things like World Name, Password, etc.
In this section, players need to select the port that they’ve forwarded on their router. This is extremely important! For those of you who don’t know how to Port Forward, it’s unique for different routers out there and required having a Static IP – it won’t work with a Dynamic IP. Feel free to check out this Port Forwarding Guide for more help on how to do it. Players must also ensure that the port that they’ve forwarded and selected isn’t blocked by their Firewall Settings.
This is where players will need to name their World. Once again, remember to choose something unique that doesn’t create any conflicts with Passwords, Server Name, etc.
Lastly, this is where players will need to input their password to get the dedicated server going.
Once done, players will need to save the file and launch it with Administrator privileges. Once the text “Game Server Connected” appears at the bottom of the screen, players will be able to start the server. In order to shut the server down, don’t close the command window and press any key instead.
Players who aren’t really tech-savvy and don’t want to go through the trouble of forwarding ports, finding the Static IP, giving Firewall permissions, etc. can simply download the Citadel Server for Valheim and let it take care of everything while they focus on playing.
Also, make sure to check out the detailed Console Commands Guide as it’ll help you run the server much more efficiently.
That’s all we’ve got in how to set up a dedicated server in Valheim. For more help on the game, feel free to check out our detailed Valheim wiki guides.