A guide on how to download and run server, install docker for Valheim.
How to Download and Run Server
All the credits go to: Gaston LeGume.
Information
I’ve managed to download and run a server successfully with the steps below. I assume you have some basic knowledge of how servers and SteamCMD work, so the guide is very brief.
SteamCMD and installing content.
Download SteamCMD from here. Extract it to any location. I keep my SteamCMD on my desktop.
Create a .bat file named “update.bat” and paste the following in it:
C:\Users\USERNAME\Desktop\SteamCMD\steamcmd +login anonymous +force_install_dir C:\Valheim +app_update 896660 validate +exit
- Change C:\Users\USERNAME\Desktop\SteamCMD\steamcmd to where you extracted SteamCMD.
- Change the +force_install_dir C:\Valheim to where you want to install the server.
- Save the .bat file and run it. When it has finished it should look like this in the folder you specified:
Move your “update.bat” to the installation folder to keep it organized and run it when you want to update the server.
Configure Server
Make a copy of the “start_headless_server.bat” in your server folder and rename it to “start.bat”. Open “start.bat” with any text editor.
I’ve marked the text you need to change with “CHANGEME” below, change them to what you want. When you’re done, save and exit.
@echo off set SteamAppId=892970 REM Tip: Make a local copy of this script to avoid it being overwritten by steam. REM NOTE: Minimum password length is 5 characters & Password cant be in the server name. REM NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall. start valheim_server -nographics -batchmode -name "CHANGEME" -port 2456 -world "CHANGEME" -password "CHANGEME" -public 1 echo Server started echo. echo Press ANY KEY to stop server pause > nul echo 1 > server_exit.drp echo Server exit signal set echo You can now close this terminal
Make sure ports 2456-2458 are open in your firewall on your router and PC. You can now start the server with the “start.bat” file. The server is ready when it says “Game server connected”. To close down the server properly, open the CMD prompt that is open (see picture below) and input any key.
All the credits go to: Gaston LeGume.
Docker
Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.
You can download and install Docker on multiple platforms. Refer to the following section and choose the best installation path for you.
docker: https://docs.docker.com/get-docker/
docker-compose: https://docs.docker.com/compose/install/
By ⭕⃤ WHOLF †, Akitake, smiffe
Similar Posts:
- Valheim – How to Set up Dedicated Linux Server
- Valheim – How to Connect Directly Server
- Valheim – Guide to Animals, Axes, Flint, Taming, Seeds, Respawn, and More
- Valheim – Save File Location
- Valheim – How to Boost and Fix FPS
- Valheim – Cheat Commands (without Trainer)
- Valheim – How to Get Swamp Key
- Valheim – How to Catch the Enemy (Ways: Moats, Trees, Rune, and More)
- Valheim – 5 Steps to Find a Big Blue Troll
- Valheim – Cheats (Infinite Health, Stamina, God Mode, and More)
- Valheim – Hunting, Gathering, and Food Guide
- Valheim – How to Build Easy Fireplace
- Valheim – How to Tame a Boar
- Valheim – How to Build and Craft Home, Campfire, Chest, Bed, Cooking Station
- Valheim – Tips and Tricks for Graves, Chopper, Cave, and More