Home Cloud Serevrs Install and Configure a Valheim Dedicated Server on a Windows VPS

Install and Configure a Valheim Dedicated Server on a Windows VPS

Last updated on Feb 13, 2025

Hosting a Valheim dedicated server on a Windows VPS allows you to create a persistent multiplayer world for your community or friends. This guide will walk you through installing, configuring, and optimizing a Valheim server on a Windows Server VPS.


📌 Prerequisites

  • A Windows Server VPS (2016, 2019, or 2022) from VolticHost

  • Administrator access

  • At least 4GB RAM (8GB+ recommended for larger servers)

  • SteamCMD installed (to download and update Valheim server files)

  • Ports 2456-2458 open in the firewall


1️⃣ Install and Set Up SteamCMD

  1. Download SteamCMD from:
    👉 https://developer.valvesoftware.com/wiki/SteamCMD

  2. Extract steamcmd.zip to C:\steamcmd.

  3. Open Command Prompt (Admin) and navigate to the SteamCMD folder:

    cd C:\steamcmd
    
    
  4. Run SteamCMD:

    steamcmd.exe
    
    
  5. Log in as an anonymous user:

    login anonymous
    
    
  6. Set the installation directory for Valheim:

    force_install_dir C:\ValheimServer
    
    
  7. Download the Valheim server files:

    app_update 896660 validate
    
    
  8. Once complete, exit SteamCMD:

    quit
    
    

Valheim server files are now installed!


2️⃣ Configure the Valheim Server

  1. Open File Explorer and navigate to:

    C:\ValheimServer
    
    
  2. Right-click inside the folder, select NewText Document.

  3. Name the file start_server.bat and open it in Notepad.

  4. Paste the following script:

    @echo off
    cd /d C:\ValheimServer
    start valheim_server.exe -name "YourServerName" -port 2456 -world "YourWorld" -password "YourPassword" -public 1
    
    
  5. Replace YourServerName, YourWorld, and YourPassword with your custom settings.

  6. Save and close the file.

Your Valheim server is now configured!


3️⃣ Open Valheim Server Ports in Windows Firewall

  1. Open Windows Defender Firewall (Win + R, type wf.msc, press Enter).

  2. Click Advanced SettingsInbound RulesNew Rule.

  3. Select Port, then click Next.

  4. Choose UDP, enter 2456-2458, then click Next.

  5. Select Allow the connection, then click Next again.

  6. Apply to Domain, Private, and Public networks.

  7. Name the rule Valheim Server Ports and click Finish.

Your Valheim server is now accessible online!


4️⃣ Start the Valheim Server

  1. Open Command Prompt (Admin).

  2. Navigate to the Valheim server folder:

    cd C:\ValheimServer
    
    
  3. Run the server using the batch script:

    start_server.bat
    
    
  4. Keep the window open while the server is running.

Your Valheim server is now online!


5️⃣ Connect to Your Valheim Server

Find Your Public IP

To share your server with others, find your VPS public IP address:

ipconfig

Join the Server from Valheim

  1. Open Valheim.

  2. Click Start GameJoin Game.

  3. Click Add Server and enter your VPS IP:2456.

  4. Click Connect, enter the server password, and join the world.

Players can now join your Valheim server!


6️⃣ Automate Server Startup (Optional)

To start the server automatically when Windows boots:

  1. Open Task Scheduler (Win + R, type taskschd.msc, press Enter).

  2. Click Create Basic Task (right panel).

  3. Name it Start Valheim Server → Click Next.

  4. Select When the computer starts → Click Next.

  5. Select Start a program → Click Next.

  6. Browse to start_server.bat inside C:\ValheimServer.

  7. Click Finish.

Your Valheim server will now start automatically on reboot!


🎉 Conclusion

You've successfully set up a Valheim dedicated server on a Windows VPS! Your multiplayer world is now online, ready for friends and players. 🚀

For more assistance, contact VolticHost Support.