Create a Valheim dedicated server: Step-by-step tutorial

Ready to host a legendary Valheim realm that can rival Asgard itself? A Valheim Dedicated Server is your ticket to massive multiplayer mayhem in this Norse-inspired survival epic. You can run it from your PC or a remotely hosted server.

A Valheim dedicated server is a standalone server application that hosts your game world continuously, allowing players to connect anytime.

Ready to start exploring?

Ready to forge a Valheim world worthy of skaldic poems? Let’s fire up that server and make the gods envious!

Key things to know before we dive in:

System requirements for a Valheim server

Before diving into the installation process, ensure your system meets these specifications for optimal performance.

Minimum requirements

Recommended requirements

1. Log into the server

Log into your dedicated server to start the process. Windows Server 2016 and 2019 support Valheim dedicated server hosting.

2. Download Steam

Use this link to download the Steam installer from the official website and then click on the blue INSTALL STEAM button in the middle of the page.

download steam for valheim server

Save the SteamSetup.exe file to your designated download location.

3. Install Steam

Run the downloaded SteamSetup.exe file and follow the installation wizard to install it onto your server.

Steam installation for Valheim dedicated server

Once installed, launch Steam and log in to your Steam account.

4. Install Valheim

Start Steam and open the LIBRARY tab. Use the search bar to search for Valheim and select it. Click the blue INSTALL button and follow the installation wizard to install it onto your server.

Note: this step is optional and only required if you intend to join and play the game from the dedicated server instead of your PC.

5. Install Valheim on your dedicated server

Use the search bar again to find Valheim Dedicated Server and select it. Click the blue INSTALL button and follow the Valheim Dedicated Server setup wizard to install it onto your server.

Find Valheim dedicated server in Steam

6. Configure your Valheim dedicated server settings

Use Windows Explorer to navigate to C:\Program Files (x86)\Steam\steamapps\common\Valheim dedicated server\.

Now open the start_headless_server.bat file with a text editor such as Notepad and observe the final line of code: valheim_server -nographics -batchmode -name “My server” -port 2456 -world “Dedicated” -password “secret” -crossplay.

Open Valheim dedicated server files in Notepad

Note: The -crossplay flag is still valid, but recent updates made it a bit buggy (esp. w/ PlayFab). You might need to disable it, depending on your setup.

7. Launch your Valheim server

Use the Steam library search bar one more times to find Valheim Dedicated Server and select it. Then, use the green LAUNCH button to run it.

Next, a command prompt window will appear, and after a few moments, you should see the following line: Session “Server Name” with join code ###### and IP ##.##.##.##:2456 is active with 0 player(s). Write down the join code for the final step. The join code format follows: ######.

8. Configure the firewall

If you fail to receive the Session is active message from the previous step, you will need to configure your server’s firewall by opening ports 2456 to 2458.

Valheim requires three ports for full functionality. Port 2456 handles the main game connection. Port 2457 manages Steam queries. Port 2458 processes Steam communication. Configure all ports as TCP/UDP for proper operation.

Your hosting provider can help with this if you find it overwhelming, so don’t hesitate to reach out for support. (Note: this step is optional and depends on your hosting provider’s, as well as your own, firewall configuration.)

9. Share the server’s credentials

If you want your friends to join the server, you need to provide them with two things: the password you configured in step 6 and the join code you received in step 7.

Friends wanting to join a game should take the following steps:

10. Enjoy the game

valheim dedicated server village

Congratulations! You’ve reached the end of our Valheim Dedicated Server setup guide. Have fun running your very own dedicated Valheim server!

Remember, keep the server process running for continuous access.

To take your Valheim server to the next level, consider setting up automatic restarts or a service to keep the server online 24/7.

Pro tips:

Can you run a dedicated Valheim server?

Valheim server administration tips

Server shutdown

To properly shut down your Valheim server, you can use CTRL+C in the Command window. A better option is to use exit in console, to avoid corruption.

Server access management

Valheim provides several text files to control server access:

These files are located in the server installation directory. Add one Steam ID per line. Changes take effect immediately without server restart.

Admin console

Access the admin console by pressing F5 while in-game. This provides various administrative commands:

How to manage Valheim server performance

RAM allocation settings

Modify the start script (start_headless_server.bat) to allocate more RAM:

@echo off
set SteamAppId=892970
echo "Starting server PRESS CTRL-C to exit"
valheim_server.exe -nographics -batchmode -name "My Server" -port 2456 -world "Dedicated" -password "secret" -crossplay -memory 4096

Memory allocation uses the -memory parameter followed by megabytes. The -memory parameter sets RAM allocation in MB. For 10+ players, allocate at least 4GB (4096MB).

World file backup

[worldname].db (world data)

[worldname].fwl (world metadata)

[worldname].db.old (backup world data)

[worldname].fwl.old (backup metadata)

Save interval configuration

Add -saveinterval 1200 to your start script to set automatic saves every 1200 seconds (20 minutes). Lower intervals increase safety but may impact performance.

Server monitoring tools

Additional resources

How to start selling Minecraft servers →

Turn a hobby into a side-hustle

Latency and rage-quitting →

Liquid Web’s industry study on latency and gaming

Dedicated vs. listen servers →

Pros and cons of each so you can decide what you need

Joseph Molloy is a Liquid Web Security Operations tech who spends his days cleaning up malware and doing his part to keep the Internet safe. He is interested in all things Linux and always looking for something new to learn. In addition, he enjoys cooking and playing guitar, is an avid horror and sci-fi reader, and is a fan of black metal music.