How to Set Up a Risk of Rain 2 Dedicated Server on AnonVM Hosting

Risk of Rain 2 is a popular action-packed, third-person roguelike game where players battle through alien landscapes while upgrading their characters with powerful items and abilities. Hosting a dedicated server on your own VPS allows you and your friends to enjoy a smooth multiplayer experience. In this guide, we'll walk you through how to set up a Risk of Rain 2 dedicated server on a VPS provided by AnonVM.

Prerequisites

Before you begin, make sure you have the following:

  • A VPS from AnonVM with at least 4 GB of RAM, 2 CPU cores, and 30 GB of disk space.
  • SSH access to your VPS.
  • Basic knowledge of Linux commands.
  • A stable internet connection to download the necessary files.

Step 1: Access Your AnonVM VPS

  1. Log in to your AnonVM account and navigate to your VPS.
  2. Use an SSH client like PuTTY (for Windows) or your terminal (for Linux/Mac) to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with the actual IP address of your VPS and provide your password when prompted.

Step 2: Install Required Dependencies

Before installing Risk of Rain 2, you’ll need to install a few necessary packages to ensure the game server runs smoothly.

  1. Update your system:

     
    apt-get update && apt-get upgrade -y
  2. Install required libraries and tools:

     
    apt-get install wget curl lib32gcc1 screen unzip -y

    These packages allow you to download and run the game server on your VPS.

Step 3: Install SteamCMD

SteamCMD is a command-line version of Steam that will help you download and manage the server files for Risk of Rain 2.

  1. Create a directory for SteamCMD:

     
    mkdir -p /home/steam cd /home/steam
  2. Download and extract SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  3. Verify the SteamCMD installation:

     
    ./steamcmd.sh

    After the prompt appears, type quit to exit SteamCMD.

Step 4: Download the Risk of Rain 2 Server Files

Now that SteamCMD is installed, it’s time to download the Risk of Rain 2 dedicated server files.

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory for the server files:

     
    force_install_dir ./riskofrain2_server
  3. Download the server files:

     
    app_update 632360 validate

    This command will download the latest server files for Risk of Rain 2. The download may take some time, depending on your internet connection speed.

Step 5: Configure the Server

Once the server files are downloaded, you need to configure your server for multiplayer sessions.

  1. Navigate to the server directory:

     
    cd /home/steam/riskofrain2_server
  2. Edit the configuration file:

    • Open the server's configuration file start_server.sh in a text editor (like nano) to modify settings like server name, player limit, and difficulty.
     
    nano start_server.sh

    Example Configuration Options:

    • Server Name: Customize the name of your server to appear in the server list.
    • Max Players: Set the maximum number of players who can join your server.
    • Game Mode: Choose your preferred difficulty setting, such as Easy, Normal, or Monsoon.

    After editing the file, save and close the editor (press CTRL + X, then Y to confirm).

Step 6: Open Required Ports

In order for players to connect to your server, you must open the necessary ports in your VPS firewall.

Risk of Rain 2 requires the following ports:

  • TCP/UDP 27015: Game server port
  • TCP/UDP 27016: Query port (for server browser)
  1. Open the required ports using ufw (Uncomplicated Firewall):

     
    ufw allow 27015/tcp ufw allow 27016/tcp ufw reload

    If you use a different firewall management tool, make sure to open the appropriate ports.

Step 7: Start the Server

Now, you're ready to start the server.

  1. Run the server in a screen session: Using a screen session will allow the server to run in the background, even if you disconnect from the VPS.

    • Create a new screen session:

       
      screen -S riskofrain2_server
    • Start the server:

       
      ./start_server.sh
  2. Detach from the screen session: To detach from the session and leave the server running, press CTRL + A, then D. To reconnect to the session later, use:

     
    screen -r riskofrain2_server
  3. Check the server logs: You can monitor the server logs to check for errors or important messages:

     
    tail -f /home/steam/riskofrain2_server/logs/latest_log.txt

Step 8: Connect to Your Server

Once the server is running, you can connect to it from your Risk of Rain 2 game client.

  1. Launch Risk of Rain 2 on your local machine.
  2. Go to Multiplayer, then Join Game.
  3. Search for your server by name, or manually enter your server’s IP address and port if you have set it up.

If you've set a password for your server, you'll be prompted to enter it.

Step 9: Update the Server

To ensure your server stays up-to-date with the latest patches and fixes, run the following SteamCMD commands regularly:

  1. Log into SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Check for updates:

     
    force_install_dir ./riskofrain2_server app_update 632360 validate

    This will check for and install any updates available for the server.

Conclusion

You’ve now successfully set up a Risk of Rain 2 dedicated server on your AnonVM VPS. By following these steps, you can provide a stable and customizable environment for multiplayer sessions with your friends. Don't forget to periodically check for updates and manage server settings to ensure the best experience. Enjoy your game!

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

Powered by WHMCompleteSolution