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
- Log in to your AnonVM account and navigate to your VPS.
- Use an SSH client like PuTTY (for Windows) or your terminal (for Linux/Mac) to connect to your VPS:
your-vps-ip
with the actual IP address of your VPS and provide your password when prompted.
Replace
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.
-
Update your system:
-
Install required libraries and tools:
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.
-
Create a directory for SteamCMD:
-
Download and extract SteamCMD:
-
Verify the SteamCMD installation:
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.
-
Log in to SteamCMD:
-
Set the installation directory for the server files:
-
Download the server files:
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.
-
Navigate to the server directory:
-
Edit the configuration file:
- Open the server's configuration file
start_server.sh
in a text editor (likenano
) to modify settings like server name, player limit, and difficulty.
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
, thenY
to confirm). - Open the server's configuration file
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)
-
Open the required ports using
ufw
(Uncomplicated Firewall):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.
-
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:
-
Start the server:
-
-
Detach from the screen session: To detach from the session and leave the server running, press
CTRL + A
, thenD
. To reconnect to the session later, use: -
Check the server logs: You can monitor the server logs to check for errors or important messages:
Step 8: Connect to Your Server
Once the server is running, you can connect to it from your Risk of Rain 2 game client.
- Launch Risk of Rain 2 on your local machine.
- Go to Multiplayer, then Join Game.
- 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:
-
Log into SteamCMD:
-
Check for updates:
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!