Change Valheim Dedicated Server Version: Step-by-Step
In this article
This guide walks you through changing the version of your Valheim dedicated server, whether you want to roll back to an older release for mod compatibility or update to the latest patch. You'll need command-line access to the machine running the server (Windows, Linux, or a hosting panel) and SteamCMD if you're not using a game hosting provider's control panel.
What You'll Need
- Access to the server's file system (SSH for Linux, RDP or console for Windows, or your hosting provider's file manager).
- SteamCMD installed on the server (if you manage the server manually).
- The server's Steam App ID: 896660 (Valheim dedicated server).
- Your Steam username and password (or an anonymous login if your server allows it).
- Backup of your world files and configuration (always recommended before changing versions).
Step-by-Step
- Stop the server. Use your hosting panel's stop button, or run
systemctl stop valheim(Linux) or stop the process in Task Manager (Windows). Ensure the process is fully terminated before proceeding. - Back up your world data. Copy the entire
.config/unity3d/IronGate/Valheimfolder (Linux) orC:\Users\<username>\AppData\LocalLow\IronGate\Valheim(Windows) to a safe location. This contains your worlds, characters, and configuration. - Determine the desired version. If you need a specific older version, note the build ID (e.g., 0.217.38). If you just want the latest, skip to step 5. For a specific version, you'll need the corresponding Steam depot manifest or build ID—often found in community modding forums or the game's patch notes.
- Open SteamCMD. Navigate to your SteamCMD installation directory (e.g.,
/home/steam/steamcmdon Linux,C:\steamcmdon Windows). Run./steamcmd.sh(Linux) orsteamcmd.exe(Windows). - Log in. Type
login anonymous(most Valheim servers allow anonymous) orlogin <your_username>and enter your password when prompted. If you use a Steam Guard code, enter it as well. - Set the install directory. Type
force_install_dir /path/to/your/valheim/server(replace with your actual server path). This ensures files are placed correctly. - Download the desired version.
- For latest:
app_update 896660 validate - For a specific version:
download_depot 896660 896661 <build_id>(the depot ID for Valheim dedicated server is 896661). This downloads to a temporary folder; you'll need to copy the files over your existing server directory.
- For latest:
- Copy files (if using download_depot). After the download completes, SteamCMD will show the destination path (e.g.,
steamapps/content/app_896660/depot_896661). Copy all files from there to your server directory, overwriting existing files. - Exit SteamCMD. Type
quit. - Restart the server. Start it via your panel or command line. Verify it launches without errors and that the version matches what you intended (check the server console or logs).
Common Mistakes
- Forgetting to stop the server before updating. This can cause file corruption or the update to fail.
- Not backing up world files. Version changes can sometimes alter world data; a backup ensures you can revert if something goes wrong.
- Using the wrong depot ID. The dedicated server depot is 896661, not the client depot (which is 896660). Using the wrong one will download the wrong files.
- Mixing versions between server and clients. Clients must be on a compatible version; otherwise, they'll get a “version mismatch” error when connecting.
- Ignoring the
validateflag. This checks file integrity and can fix corrupted downloads; skipping it may leave you with a broken server.
Tips
- Use a script. If you manage the server manually, write a small script that stops the server, runs SteamCMD with the desired version, and restarts the server. This saves time and reduces errors.
- Keep a changelog. Note which version you're running and why (e.g., “0.217.38 for mod X”). This helps when troubleshooting later.
- Test locally first. If possible, spin up a test server on your own PC with the same version to ensure mods and worlds work before applying to your production server.
- Check mod compatibility. If you use mods, verify they support the version you're switching to. Many mods break with major updates.
- Monitor the server after update. Watch the console for errors, and have players test connectivity before announcing the server is back up.
Troubleshooting
- SteamCMD says “Error! App '896660' state is 0x202 after update job.” This usually means the server is still running or files are locked. Ensure the server process is completely stopped and try again.
- Server starts but shows an old version. You may have downloaded the client depot instead of the server depot, or the files didn't overwrite properly. Re-check the depot ID and copy files again.
- Clients get “version mismatch.” Your server version doesn't match the client's. Either update the server to the latest or have clients opt into the same beta branch (if available).
- World data appears corrupted after update. Restore from your backup. If the issue persists, the version you switched to may not be compatible with your world; consider staying on the previous version.
- SteamCMD hangs or times out. Check your internet connection, firewall settings, and disk space. Try running SteamCMD as administrator (Windows) or with sudo (Linux).
- Mods not loading. Ensure BepInEx and your mods are installed for the correct version. Some mods need updating; check their pages.
Frequently Asked Questions
Can I downgrade my Valheim server to an older version?
Yes, you can use SteamCMD's download_depot command with a specific build ID to download an older version. You'll need to know the build ID for the version you want, which is often listed in community resources or patch notes.
Do I need to update my server every time the game updates?
Not necessarily, but clients running a newer version won't be able to connect to an outdated server. If you want to keep playing with friends, you'll need to update the server to match the client version, or have everyone downgrade their clients.
Will my world data be lost when changing versions?
Generally, no. World files are usually forward-compatible, but it's always safe to back them up before making any changes. In rare cases, a major update might alter world generation, but your existing worlds should still load.
How do I find the build ID for a specific Valheim version?
Build IDs are not officially published. You can find them in community forums, modding sites, or by checking the SteamDB page for Valheim. The dedicated server depot ID is 896661, and the build ID is a number like 12345678.
Can I use the Steam client to update my dedicated server?
No, the Steam client is for playing the game, not for running a dedicated server. You must use SteamCMD or your hosting provider's control panel to update the server files.
What if I use a hosting provider like G-Portal or Nitrado?
Most hosting providers have a web interface where you can select the game version or click “Update.” Check your provider's documentation; the process is usually simpler than manual SteamCMD.