Step-by-Step Guide to Setting Up a Dedicated Valheim Server for Friends
Step-by-Step Guide to Setting Up a Dedicated Valheim Server for Friends
Setting up your own Valheim server is easier than it might seem. Follow this step-by-step guide:
Step 1: Prerequisites
- Valheim Game: You need a legitimate copy of the game on Steam.
- Hardware: A PC or server that meets the hardware requirements mentioned above.
- Internet Connection: A stable connection with sufficient bandwidth.
Step 2: Download Server Files
-
Download SteamCMD:
- Download the SteamCMD tool from the official Steam Developer website.
- Extract the file to a directory of your choice.
-
Install Valheim Dedicated Server:
- Open Command Prompt or Terminal.
- Navigate to the SteamCMD directory.
- Run the following command:
Code kopieren
Note: Adjust the installation path (steamcmd +login anonymous +force_install_dir C:\ValheimServer +app_update 896660 validate +exitC:\ValheimServer) as needed.
Step 3: Configure the Server
-
Edit the Server Start Script:
- Go to your Valheim server installation directory.
- Edit the file
start_headless_server.bat(Windows) orstart_server.sh(Linux).
-
Adjust Parameters:
- -name "ServerName": Give your server a name.
- -port 2456: Default port; can be changed if necessary.
- -world "WorldName": Name your game world.
- -password "Password": Set a secure password.
- Example:
Code kopieren
valheim_server -nographics -batchmode -name "MyValheimServer" -port 2456 -world "MyWorld" -password "SecurePassword" -public 1
Step 4: Forward Ports in Your Router
- Log into your router's web interface.
- Forward UDP ports 2456 to 2458 to the local IP address of your server.
Step 5: Start the Server
- Run the customized start file:
- Windows: Double-click
start_headless_server.bat. - Linux: Execute
./start_server.shin the terminal.
- Windows: Double-click
Step 6: Connect to the Server
- Launch Valheim on your gaming PC.
- Go to "Join Game".
- Search for your server name or use the direct IP connection.
- Enter the set password and join the game.
Step 7: Grant Friends Access
- Share your server name, IP address, and password with your friends.
- Ensure they are using the same Valheim version.
