How to Set Up a Valheim Server on AnonVM – Complete Guide

How to Set Up a Valheim Server on AnonVM – Complete Guide

Hosting your own Valheim server on AnonVM lets you explore and conquer the Viking world with friends, all on a stable, secure, and high-performance platform. This step-by-step guide will help you set up a Valheim server on AnonVM’s offshore VPS hosting, which is privacy-focused and designed for reliable uptime.


Why Host a Valheim Server on AnonVM?

Valheim is a multiplayer survival game that thrives with multiple players in a dedicated environment. AnonVM provides powerful, offshore VPS options with excellent performance and enhanced privacy, ideal for ensuring a smooth Valheim experience. Hosting your server on AnonVM gives you total control over the game world, letting you manage and customize the server as you see fit.


Step 1: Select the Best AnonVM VPS Plan for Valheim

For a Valheim server, you’ll need a VPS with at least 4GB of RAM and a quad-core CPU to ensure smooth gameplay and minimal lag.

  1. Visit AnonVM and browse the available VPS plans.
  2. Choose a plan with 4GB of RAM or more and sufficient CPU power to handle the game’s demands.
  3. Complete the setup and select your preferred server location.

Step 2: Connect to Your VPS via SSH

Once you’ve secured your AnonVM VPS, connect to it using SSH to start setting up your Valheim server.

  1. Open your terminal (or use PuTTY if you’re on Windows).
  2. Connect to your VPS with the following command:
     
    ssh username@your-server-ip
  3. Enter your password when prompted to access the server.

Step 3: Install Necessary Dependencies

Before installing the Valheim server, update your VPS and install required dependencies.

  1. Update your system:
     
    sudo apt update && sudo apt upgrade -y
  2. Install curl, wget, and screen:
     
    sudo apt install -y curl wget screen lib32gcc1

Step 4: Install SteamCMD

SteamCMD is required to download and run the Valheim server. Here’s how to set it up:

  1. Create a new directory for SteamCMD:
     
    mkdir ~/steamcmd && cd ~/steamcmd
  2. Download the SteamCMD installer:
     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
  3. Extract SteamCMD:
     
    tar -xvzf steamcmd_linux.tar.gz

Step 5: Download the Valheim Server Files

With SteamCMD ready, you can download the Valheim server files.

  1. Run SteamCMD:
     
    ./steamcmd.sh
  2. In the SteamCMD console, enter the following commands:
     
    login anonymous force_install_dir ~/valheim_server app_update 896660 validate quit

Step 6: Configure Your Valheim Server

You’ll need to create a startup script with your server’s configuration details, like world name, password, and maximum players.

  1. Navigate to the Valheim server directory:

     
    cd ~/valheim_server
  2. Create a startup script file:

     
    nano start_valheim.sh
  3. Add the following script (replace placeholders with your chosen values):

     
    #!/bin/bash ./valheim_server.x86_64 -name "My Valheim Server" -port 2456 -world "MyWorld" -password "yourpassword" -public 1
    • Name: Set your server name.
    • World: Name your Valheim world (a new world will be created if it doesn’t already exist).
    • Password: Choose a password to secure your server.
  4. Save and close the file.

  5. Make the script executable:

    bash
    chmod +x start_valheim.sh

Step 7: Start Your Valheim Server

To keep the server running even after disconnecting from SSH, use screen.

  1. Start a screen session:
     
    screen -S valheim_server
  2. Run the startup script:
     
    ./start_valheim.sh

Press Ctrl + A, then D to detach from the screen session, leaving the server running in the background.


Step 8: Connect to Your Valheim Server

Now that the server is up, you and your friends can join.

  1. Open Valheim on your computer.
  2. Select Join Game and click Join IP.
  3. Enter your server’s IP and the port number 2456:
     
    your-server-ip:2456
  4. Enter the server password and join the game!

Conclusion

Setting up a Valheim server on AnonVM is an excellent way to enjoy the game with friends, providing a stable and privacy-focused hosting solution. AnonVM’s offshore VPS ensures that your Valheim world is always up and running, so you can explore, build, and survive in the Viking realm without interruption.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution