You decide which services we may enable for analytics, personalization, and external content.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
AnalyticsMarketingPersonalizationExternal media
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.2
Learn how to quickly and easily set up a Valheim Dedicated Server on your VPS or Dedicated Server → Find out more
10 November 20263 min read0 Views0 helpful
Introduction
Do you have a VPS or Dedicated Server and want to install a game server on it? For example, a Valheim Dedicated Server? You’re in the right place! Below, we’ll explain step by step how to set up a service like this on your server.
FAQ
Frequently asked questions
Remote Desktop (RDP) access to your Windows server and SteamCMD (the command-line version of the Steam client).
Download it from the official Valve developer website (developer.valvesoftware.com/wiki/SteamCMD). Extract the downloaded steamcmd.zip, then run steamcmd.exe and wait for 'Loading Steam API.... OK' to appear.
After running 'login anonymous', use 'app_update 896660' (Steam App ID 896660).
In the .../steamapps/common/Valheim dedicated Server/ folder, create a file named start_headless_server.bat and add the required startup script.
Feedback
Was this article helpful?
Your feedback helps us prioritize and improve content.
0 of 0 Users found this article helpful.
Personal support
Need more help than the guide provides?
Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.
Navigation
Software
Preparation
SteamCMD is required to set up a Valheim server. SteamCMD is the command-line version of the Steam client. With this tool, you can quickly and easily download Dedicated Server applications for popular Steam games. You can find SteamCMD on the official Valve developer website: https://developer.valvesoftware.com/wiki/SteamCMD.
Next, download the files. The download includes the steamcmd.zip file, which you first need to extract. We recommend creating a dedicated folder to extract the file into. You should then see steamcmd.exe. Run it and wait for the installation process to finish.
Once the message Loading Steam API.... OK appears, the process has completed successfully, and you can start installing the Valheim server.
Installation
After installation, you should be able to run commands in the Steam command line (steamcmd.exe). You need to log in there using the anonymous user. Run the following command: login anonymous
The next step is to install the server. Run the command app_update 896660. The App ID 896660 corresponds to the Valheim Dedicated Server application.
Info
To avoid errors, don’t interrupt the process before it finishes. It may take a moment, but patience pays off! :)
Go to the directory where you installed the server, then open the following subfolder: ../steamapps/common/Valheim dedicated Server/
There, you need to create the startup file required to run the server software. Create a file named: start_headless_server.bat
Info
Make sure the “Show file name extensions” option is enabled so that the correct file extension is used.
Open the file, add the following contents, and save your changes:
Code
@echo off
set SteamAppId=892970
echo "Starting server PRESS CIRL-C to exit"
REM Tipp: Erstelle eine lokale Kopie dieses Skripts, damit es nicht von Steam überschrieben wird.
REM HINWEIS: Mindestpasswortlänge ist 5 Zeichen & Passwort darf nicht im Servernamen vorkommen.
REM HINWEIS: Du musst sicherstellen, dass die Ports 2456-2458 über deinen lokalen Router & Firewall an deinen Server weitergeleitet werden.
valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Dedicated" -password "secret" -crossplay
To make the server visible and accessible from outside your network, you need to allow or forward the server ports in your firewall. To do this, open the Windows Firewall settings.
In the settings, you need to add additional rules. Click the inbound and outbound rules as described below, then add rules for ports 2456–2458 using the TCP/UDP protocols.
Configuration
The setup is now complete. You can make further configuration changes in the start_headless_server.bat file. There, you can customize the server name, server password, admin password, and many other options. To do this, go to the following directory:
Code
../steamapps/common/Valheim dedicated Server/
Playing
Once setup is complete, you can start the server by running the start_headless_server.bat file you created earlier. This opens the server console and starts the server. If everything is working as expected, the server should appear in the server list once it has started successfully.
Conclusion
Congratulations, you’ve successfully installed and configured Valheim on your VPS! If you have any questions or run into any issues, our support team is available every day and will be happy to help.
Server hosting from €2.49 / month, online instantly, DDoS protection included.