Table of Contents

Setting up a persistent world for your friends is the single best way to elevate your gaming experience in Iron Gate’s survival masterpiece. If you are tired of waiting for your friends to come online just to access your shared base, learning how to set up a valheim dedicated server is your next logical step.

A valheim dedicated server allows your game world to remain active on the network even when you are offline, ensuring that your base stays safe and your progress continues unimpeded. In this guide, we will break down exactly how to launch your own instance, manage your settings, and troubleshoot common connectivity issues to get you playing in minutes.

Why You Need a Dedicated Server

For many players, the default "Host Game" option is sufficient for casual sessions. However, once your team grows or your building projects become more ambitious, the limitations of peer-to-peer hosting become apparent. When you host the game yourself, the world stops the moment you log out, preventing friends in different time zones from contributing.

By utilizing a valheim dedicated server, you shift the hosting burden from your personal PC to either a local machine or a professional hosting provider. This provides a smoother experience with higher uptime and better overall stability for all participants.

Comparison of Hosting Options

Hosting Method Pros Cons Best For
Self-Hosted (PC) Completely free; full control Needs PC to stay on; power usage Small groups, technical users
VPS/Cloud Hosting Professional grade; 24/7 uptime Monthly subscription cost Communities, serious players
Official Game Hosting Easiest to setup; optimized Higher entry cost Casual players, non-techies

Step-by-Step: Setting Up Your Server on Steam

The most popular way to host for free is through the official tools provided by Valve. You do not need to install the full game to host a server, which saves space on your machine.

  1. Installation: Open your Steam Library, click the "Games" filter dropdown, and ensure "Tools" is selected. Search for "Valheim Dedicated Server" and hit install.
  2. Configuration: Navigate to the installation folder by right-clicking the tool in Steam and selecting Manage > Browse local files.
  3. The BAT File: Locate start_headless_server.bat. Always create a copy of this file before editing it, as Steam updates will overwrite the original.
  4. Edit Settings: Open your copy with Notepad. Modify the line starting with valheim_server to change your server name, world name, and password.

Keep Your Settings Safe Always edit the copied batch file, not the original. If you edit the original, a routine Steam update will wipe your custom server configurations, forcing you to start from scratch.

Understanding Configuration Parameters

The start_headless_server.bat file is where you define the heartbeat of your world. Here are the most critical parameters you should understand before launching:

Argument Description Default / Example
-name Sets the name visible in the server list "My Valheim World"
-password Adds security to prevent random joins "SuperSecret123"
-world Specifies the file name of your world "Dedicated"
-public 1 Makes your server visible to everyone 1 (Visible) / 0 (Hidden)
-crossplay Enables Xbox and Game Pass support Optional

Managing Backups and Saves

One of the most important aspects of running a valheim dedicated server is data preservation. You can customize your backup intervals directly in the configuration file. For instance, setting -backups 4 ensures you have a history of your world in case of corruption. It is also recommended to set -saveinterval 1800 to force the server to save your progress every 30 minutes, preventing data loss during unexpected crashes.

Network Connectivity and Port Forwarding

If you choose to host from your own machine, you will likely need to handle port forwarding. This tells your router to direct incoming traffic from your friends to your PC.

The default port for Valheim is 2456. You should open ports 2456-2458 in your router's firewall settings. If you find this too technical, consider using the -crossplay argument. According to official documentation, the crossplay backend uses a relay server, which often eliminates the need for manual port forwarding.

[!WARNING] Security Risks Never share your public IP address with people you do not trust. Direct connections can leave your home network vulnerable to DDoS attacks. If you are worried about security, using a professional hosting service provides built-in protection.

Troubleshooting and Player Experience

According to player experience shared on community forums, the most common hurdle is the initial connection. If your friends cannot see your server in the list, try having them use the "Add Server" button in the Steam server browser and input your IP and port (e.g., 127.0.0.1:2456).

Admin and Moderation Tools

Managing a server requires keeping the community healthy. You can control player behavior using three text files found in your save directory:

  • adminlist.txt: List of players with server admin rights.
  • bannedlist.txt: Players restricted from entering the server.
  • permittedlist.txt: If you only want a select group to join, adding players here will automatically ban everyone else.
Command Usage
kick [name] Remove a player immediately
ban [name] Ban a player permanently
unban [name] Allow a banned player back

Frequently Asked Questions

Q: Do I need to buy a second copy of the game to run a dedicated server? A: No. The valheim dedicated server tool is free for anyone to download via Steam, even if you do not own the base game.

Q: My friends get disconnected constantly; what should I do? A: First, check your upload bandwidth. Hosting a server requires a stable internet connection. If your bandwidth is fine, ensure that you have correctly set up port forwarding or enabled the crossplay argument for a more stable relay connection.

Q: Can I host a server on the same PC I play on? A: Yes, many players run the server on their own machine. While it works, keep in mind that it uses your CPU and RAM resources. If your PC is not high-end, you might experience performance dips while both playing and hosting.

Q: What is the benefit of the Crossplay backend? A: Aside from enabling cross-platform play, the crossplay backend is generally easier to set up because it uses a relay system, often bypassing the need to configure complex router settings.

Sources and known gaps

    Related Guides

    The Ultimate Guide to Valheim

    Discover the best Valheim server hosting options, learn how to set up your own dedicated world, and get expert tips for a seamless 1.0 multiplayer experience.

    The Ultimate Guide to Setting

    Discover how to set up a Valheim server with our comprehensive guide. Learn the best hosting options, configuration tips, and how to play with friends.

    Is Valheim Cross Platform? The

    Wondering if Valheim is cross platform? Discover how to play with friends across PC, Xbox, PS5, and Switch 2, plus essential tips for seamless multiplayer.

    How to Use a Valheim Join Code

    Learn how to find and use a Valheim join code to connect with friends across platforms. Discover our step-by-step guide for seamless co-op multiplayer gaming.