Valheim Dedicated Server Manual
Valheim Dedicated Server Manual
Running a dedicated server is a great way to provide a persistent world in which you and
your friends can play anytime. Setting up a dedicated server requires some cursory scripting
knowledge and, more importantly, knowing how to set up your router to allow data to be sent
to and from the server and its connected clients.
This guide will help you script the server application but due to the multitude of router and
modem types in use today, and differing internet connection setups, we can’t provide any
detailed instructions on how to configure your router. Please refer to your router manual or
ISP.
PLEASE NOTE: The most important thing is to make sure that the Server uses a Port
Range that has access to the Internet. This is done by ‘Port Forwarding’, please refer
to your Router manual for details on how to do this. The default Port Range that the Server
uses is 2456-2458.
1. Navigate to the installation folder. To find the installation folder, right-click the
‘Valheim Dedicated Server’-entry in your Steam Library and choose ‘Manage/Browse
local files’.
2. Right-click ‘start_headless_server.bat’ and choose ‘Edit’ to open the file in Notepad
(Linux: open a terminal in the server directory and run the bash script:
"./start_server.sh").
3. The following properties are the ones we are interested in, they are all located on line
7 which starts with the text ‘start valheim_server…’.
-name “My server” Enter the name of your server that will be visible
in the Server list.
-port 2456 Choose the Port which you want the server to
communicate with. Please note that this has to
correspond with the Port Forwarding settings on
your Router.
-world “Dedicated” A World with the name entered will be created.
You may also choose an already existing World
by entering its name.
-password “Secret” Sets the password. Leave empty to run an open
server without a password.
Default path
WINDOWS:
“../%USERPROFILE%/AppData/LocalLow/
IronGate/Valheim”
LINUX:
“~/.config/unity3d/IronGate/Valheim”
4. Once you’re done setting up (don’t forget to save the file) you can start the Server
either by launching it directly in Windows or via Steam. If you get a Windows
Firewall-popup please fill all checkboxes to allow the Server to communicate with the
Internet.
5. When the Server program shows the message ‘Game server connected’ the
Server is up and running, ready to accept connections.
These three files, located in the default save path, are called ‘adminlist.txt’, bannedlist.txt’,
and permittedlist.txt’. Add Steam IDs (one per line) to set desired roles.
Please note that adding a person on the permitted list will ban everyone else from the
server.