Dec 02, 2025
Ariffud M. & Valentinas C.
8min Read
Valheim is a popular survival game where players explore, build, and survive in a Viking-inspired world. Creating your dedicated server for Valheim offers smoother gameplay, control over who joins your world, and freedom to play as you wish.
In this article, you’ll learn how to set up a Valheim dedicated server on a Linux virtual private server (VPS). Ready to rule your own Valheim server and embark on an epic saga with your friends? If so, let’s dive in!
Valheim server’s requirements are relatively modest compared to other games on dedicated servers, such as Satisfactory or Enshrouded. Here’s what you’ll need:
For a smooth Valheim server installation, make sure you use a broadband internet connection.
If you opt to install the Valheim dedicated server on a Linux VPS, it’s advisable to have a basic understanding of SSH and Linux commands. These skills are helpful for installing, navigating, and managing Linux server systems.
Using Hostinger’s Game Panel is the simplest way to launch your own Valheim dedicated server. Our Valheim server hosting plans offer this intuitive graphical interface tool, allowing you to install, manage, and invite players to join your server with ease.
For hosting Valheim, we recommend choosing the Game Panel 4 plan, which comes with a quad-core processor and 16 GB of RAM.
After selecting your desired plan, finish the setup wizard to pick a server location near you and create a secure password for your server. Then, follow these steps to get your Valheim server running with Game Panel:


Once the installation process wraps up, you’ll see your new server active and ready for action.
To invite players, double-click the new instance and look under the Connection info section for the server’s public IP address and default port.

For additional server setup options, head to Configuration → Valheim – General Settings. Here, you can tweak such settings as player permissions and game world presets.

Valheim Plus users have even more customization options accessible in the Basic, Player, and Server Settings sections.
Hostinger’s Game Panel allows you to install multiple dedicated servers within a single account. For optimal performance when running several servers, consider upgrading your plan.
For players who prefer more control and a hands-on approach, you can manually install the Valheim dedicated server. In this tutorial, we’ll use Debian 12 as our operating system.
Choosing a suitable game hosting provider is crucial for setting up a dedicated Valheim server. Hostinger stands out as a top game server provider, offering tailored solutions for various gaming needs.
Using the latest VPS-based tricks and solutions, our game hosting service grants full root access, allowing you to install, manage, and fine-tune your Valheim server according to your needs. You can also add custom mods to yourValheim server to enhance your overall gaming experience.
Furthermore, Hostinger’s game hosting plans come with dedicated resources and data centers across Asia, Europe, South America, and North America. These ensure low latency and smooth gameplay for players worldwide.
With Hostinger, you’re getting more than just VPS for gaming; you’re investing in a robust gaming server supported by solid hardware and a dependable network for minimal downtime.
After purchasing a VPS plan, the next step is to prepare it for your Valheim server. For Hostinger customers, firstly, find your VPS login details by heading to the VPS details section at the bottom of your VPS Overview page.

Then, use an SSH client app like PuTTY, macOS Terminal, or Hostinger’s Browser terminal feature to log into your server. Once logged in, follow these steps to complete the VPS initial setup:
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common
sudo ufw allow 2456/udp sudo ufw allow 2457/udp sudo ufw allow 2458/udp
sudo ufw enable
sudo ufw status
Hostinger game server users can ask Kodee AI assistant to set up a new firewall rule for Valheim by simply asking, “Create and activate a new firewall rule that allows traffic from any IP address to port 2456, 2457, and 2458 TCP/UDP.”
SteamCMD is the command-line version of the Steam client, allowing you to install game servers directly from Valve’s repositories, including those for Valheim. It’s a must-have tool for managing game servers in a Linux environment.
Before installing SteamCMD, you must configure your system to access all necessary repositories, including 32-bit libraries. Debian users should execute the following commands in sequence:
sudo add-apt-repository non-free sudo dpkg --add-architecture i386 sudo apt update
For players using an Ubuntu server, execute these commands instead:
sudo add-apt-repository multiverse sudo dpkg --add-architecture i386 sudo apt update
Once your repositories are set up, proceed with these steps:
sudo apt install steamcmd
sudo adduser -m valheim
Replace valheim with your preferred username.
sudo -u valheim -s
cd ~
ln -s /usr/games/steamcmd steamcmd
After installing SteamCMD on your Debian VPS, you’re ready to download the Valheim server files. Follow these steps:
./steamcmd +force_install_dir /home/valheim/valheimserver +login anonymous +app_update 896660 +quit
cd ~/valheimserver
./valheim_server.x86_64
./valheim_server.x86_64 -name "YourServerName" -port 2456 -world "YourWorldName" -password "YourPassword" -public 1
Replace YourServerName, YourWorldName, and YourPassword with your server details. The -public 1 option makes your server visible in the Valheim server list. Use -public 0 for a private server.
exit
Please note that the commands above run the Valheim dedicated server as a foreground service, meaning the server will stop if you close the terminal software. To keep your server running in the background, proceed to the next step.
There are two common methods to maintain your Valheim server running without keeping the terminal open – using the Linux screen and setting up a systemd service.
Starting a screen Session
Using screen is a simple way to run your server in the background for temporary or casual use. Follow the instructions below:
sudo apt install screen
screen -S ValheimServer
sudo -u valheim -s cd ~/valheimserver ./valheim_server.x86_64
Creating a Service
Setting up a systemd service is more suitable for long-term and automatic Valheim server management. Here are the steps:
sudo nano /etc/systemd/system/valheimserver.service
[Unit] Description=Valheim Dedicated Server Wants=network-online.target After=network-online.target [Service] Environment=SteamAppId=892970 Environment=LD_LIBRARY_PATH=/home/valheim/valheimserver/linux64:$LD_LIBRARY_PATH Type=simple Restart=on-failure RestartSec=10 KillSignal=SIGINT User=valheim Group=valheim WorkingDirectory=/home/valheim/valheimserver ExecStartPre=/usr/games/steamcmd +login anonymous +force_install_dir /home/valheim/valheimserver +app_update 896660 validate +exit ExecStart=/home/valheim/valheimserver/valheim_server.x86_64 -nographics -batchmode -port 2456 -public <ISPBULIC> -name "<SERVERNAME>" -world "<WORLDNAME>" -password "<PASSWORD>" -savedir "/home/valheim/valheim_save_data" [Install] WantedBy=multi-user.target
sudo systemctl enable valheimserver.service
sudo systemctl start valheimserver.service
sudo systemctl status valheimserver.service
Here’s an output example indicating your dedicated Valheim server is up and running:
● valheimserver.service - Valheim Dedicated Server
Loaded: loaded (/etc/systemd/system/valheimserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-03-04 12:34:56 UTC; 1min 17s ago
Main PID: 12345 (valheim_server)
Status: "Game server connected"
Tasks: 23 (limit: 4915)
Memory: 300M
CGroup: /system.slice/valheimserver.service
└─12345 /home/valheim/valheimserver/valheim_server.x86_64 -nographics -batchmode -port 2456 -public 1 -name "YourServerName" -world "YourWorldName" -password "YourPassword"After completing the Valheim server setup, it’s time to invite your friends to join your newly established server. Here’s how players can connect:
If everything is configured correctly, they should be able to join the server and play Valheim without issues.
Valheim Server Troubleshooting
If players can’t access your server, consider these troubleshooting tips:
To ensure a stable and enjoyable experience on your Valheim server, you need to maintain and update it regularly. Follow these steps to keep your server in optimal condition:
Safely Stopping the Server
If you’re in a screen session or have the server running in a terminal, press Ctrl + C to carefully stop the server. If it’s running as a service, use:
sudo systemctl stop valheimserver.service
To confirm that the server has shut down, run the status command:
sudo systemctl status valheimserver.service
The output should indicate that the service is inactive (dead). For example:
… Active: inactive (dead) since Thu 2021-03-04 12:34:56 UTC; 1min 17s ago …
Backing Up Server Data
To back up your Valheim world, execute the following commands, replacing ~/ValheimBackups/worlds with your preferred backup location:
cd ~/.config/unity3d/IronGate/Valheim/worlds
mkdir -p ~/ValheimBackups/worlds
cp ~/.config/unity3d/IronGate/Valheim/worlds/*.{db,fwl} ~/ValheimBackups/worldsFor character data backups, run these commands instead:
cd ~/.config/unity3d/IronGate/Valheim/characters mkdir -p ~/ValheimBackups/characters cp ~/.config/unity3d/IronGate/Valheim/characters/* ~/ValheimBackups/characters
Updating the Valheim Server Software
If your server receives an update from Valve, follow these steps to apply it:
./steamcmd +login anonymous +force_install_dir /home/valheim/valheimserver +app_update 896660 validate +quit
sudo systemctl restart valheimserver.service
Monitoring Server Performance
Adopt these best practices to monitor the server’s performance:
In this guide, you’ve learned how to set up, configure, and maintain dedicated Valheim servers, ensuring a seamless multiplayer experience.
As you become more familiar with server management, we encourage you to customize your own server further and explore the various mods that are available. These can enrich your Valheim gameplay, offering a unique experience for you and your fellow Vikings.
Should you have any questions, don’t hesitate to drop them in the comment box below!
This section will answer the most common questions about creating Valheim dedicated servers.
Setting up a Valheim server doesn’t require extensive server management experience. A basic understanding of operating systems and following step-by-step guides can get your server running. However, advanced skills could enhance complex customizations and troubleshooting.
Yes, you can customize Valheim dedicated server settings, including server name, new world generation, and player limits, through startup commands or configuration files for a tailored gameplay experience.
To add mods to your Valheim dedicated server, first install a mod manager such as BepInEx. Once installed, place the mod files into the designated plugins folder to enrich your server with new features and gameplay elements.