background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
دسته‌بندی‌ها

Risk of Rain 2 Server Setup Guide

ror2 risk-of-rain setup config mods 0 نفر این مقاله را مفید یافتند
موجود به زبان‌های: ESPAÑOL PORTUGUÊS (BRASIL)

This guide covers how to set up and configure your Risk of Rain 2 dedicated server hosted with Legion Hosting, including GPanel startup variables, server.cfg configuration, connecting to your server, mod support, and save management.

Before you begin: Make sure your server is installed and started in GPanel. If you need help finding your server's IP address and port, see How to Find Your Server IP and Port.

First Start

When you start your Risk of Rain 2 server for the first time, GPanel will automatically download and install the dedicated server files via SteamCMD (Steam App ID 1180760). This process may take a few minutes depending on network speed.

  1. Log in to GPanel and select your Risk of Rain 2 server.
  2. Click the Start button on the Console tab.
  3. Wait for the installation to complete. The console will display download progress as SteamCMD fetches the server files.
  4. Once the server is fully started, you will see a message indicating the server is ready and listening for connections.
Wine environment: Risk of Rain 2's dedicated server runs under Wine on Linux. The server egg handles this automatically — no manual Wine configuration is needed on your part. An xvfb virtual display is also configured automatically to satisfy the server's display requirements.

GPanel Startup Variables

Key server settings are configured as startup variables in GPanel. These are passed to the server process as arguments and take effect each time the server starts.

  1. Log in to GPanel.
  2. Select your Risk of Rain 2 server from the server list.
  3. Click the Startup tab.
  4. Review and adjust the variables below, then restart your server for changes to take effect.
Variable Default Description
HOSTNAME Risk of Rain 2 Dedicated Server The name displayed in the in-game server browser. Set something recognizable so players can find your server.
PLAYERS 4 Maximum number of players allowed in the lobby. Risk of Rain 2 supports up to 16 players with mods, but the vanilla game is designed for up to 4. Higher player counts increase resource usage.
PASSWORD (empty) Optional password players must enter to join. Leave blank for a public server. Passwords are case-sensitive.
ADVERTISE 1 Controls whether the server appears in the in-game server browser. Set to 1 to list the server publicly, or 0 to hide it (players must use direct connect).
Changes require a restart. After modifying startup variables, you must restart the server from the Console tab for changes to take effect.

server.cfg Configuration

For settings not available in the Startup tab, you can edit the server configuration file directly. The file is located at:

Risk of Rain 2_Data/Config/server.cfg

Open this file using the GPanel Files tab or connect via SFTP. The file uses a simple key-value format. Below are commonly adjusted settings:

Setting Example Value Description
sv_hostname My RoR2 Server Server name. This is typically set via the HOSTNAME startup variable, but can also be defined here.
sv_maxplayers 4 Maximum players. Can also be set via the PLAYERS startup variable.
sv_password mypassword Server password. Can also be set via the PASSWORD startup variable.
heart_beat 1 Whether the server sends heartbeat packets to the master server for browser listing. Equivalent to the ADVERTISE startup variable.
steam_authentication 1 Enables Steam authentication for connecting players. Keep this at 1 unless you have a specific reason to disable it.
Stop your server before editing server.cfg. Changes made while the server is running may be overwritten when the server shuts down. Always stop the server from GPanel first, make your edits, then start it again.
Startup variables take precedence. If the same setting is defined in both the GPanel Startup tab and server.cfg, the startup variable will override the config file value. Use the Startup tab for core settings and server.cfg for additional tuning.

How to Connect

Option A — In-Game Server Browser

If your server has ADVERTISE set to 1, it will appear in the in-game server browser:

  1. Launch Risk of Rain 2.
  2. From the main menu, select Multiplayer.
  3. Click Find a Game to open the server browser.
  4. Search for your server by name (the HOSTNAME you configured).
  5. Select the server and click Join. Enter the password if prompted.
Newly started servers may take a minute or two to appear in the browser. If you do not see your server immediately, wait a moment and refresh the list.

Option B — Direct Connect via Console

You can connect directly using the in-game console, which is useful for password-protected or unlisted servers:

  1. Launch Risk of Rain 2.
  2. Open the in-game console by pressing Ctrl + Alt + ` (backtick). If the console does not open, you may need to enable it by launching the game with the --doorstep-enable flag or by installing BepInEx (see Mod Support below).
  3. Type the following command and press Enter:
    connect "IP:PORT"
    Replace IP and PORT with your server's IP address and game port as shown in the GPanel Network tab.
  4. If the server has a password, you will be prompted to enter it.

For details on finding your server's IP and port, see How to Find Your Server IP and Port.

Mod Support

Risk of Rain 2 has an active modding community centered around Thunderstore, a mod repository and manager. Most server-side mods require the BepInEx modding framework.

Installing BepInEx

BepInEx is the standard mod loader for Risk of Rain 2. To install it on your server:

  1. Download the latest BepInExPack from Thunderstore.
  2. Stop your server from the GPanel Console tab.
  3. Connect to your server via SFTP (see How to Upload Files via SFTP).
  4. Extract the BepInExPack archive and upload the contents to your server's root directory, merging with existing files. The key files are the BepInEx/ folder and related configuration files.
  5. Start your server. BepInEx will initialize on the first boot and create its plugin and configuration directories.

Installing Server-Side Mods

Once BepInEx is installed, you can add server-side mods:

  1. Browse Thunderstore for mods. Look for mods tagged as server-side or host-required.
  2. Download the mod and extract it.
  3. Upload the mod's DLL files to the BepInEx/plugins/ directory on your server via SFTP.
  4. Restart the server to load the new mods.
Mod compatibility: Both the server and all connecting clients must have matching versions of any required mods. If a client is missing a required mod or has a version mismatch, they may fail to connect or experience errors. Coordinate with your players to ensure everyone is using the same mod versions.

Using r2modman (Client-Side)

For managing mods on your local game client, r2modman is the recommended mod manager. It handles mod downloads, dependency resolution, and profile management. Players connecting to your modded server should use r2modman to install the same set of mods locally.

  1. Download r2modman from Thunderstore or its GitHub releases page.
  2. Select Risk of Rain 2 as the game.
  3. Create a profile and install the mods your server requires.
  4. Launch the game through r2modman to ensure all mods are loaded.
Tip: Share your mod list or an r2modman profile export with your players so they can install exactly the same mods and versions with minimal effort.

Save Management

Risk of Rain 2 dedicated servers handle run state and progression differently from single-player. Here are the key points to understand:

  • Run persistence: A Risk of Rain 2 run lasts as long as the server is running. If the server restarts or is stopped, the current run ends and a new lobby is created when the server starts again. There is no mid-run save system — this is by design, as runs are intended to be continuous sessions.
  • Player profiles: Unlocks and player progression (items, skins, challenges) are stored client-side, not on the server. Players retain their unlocks regardless of server state.
  • Server configuration persistence: Your server.cfg and GPanel startup variables persist across restarts. Only the in-progress run is lost when the server stops.
Avoid unexpected restarts during active runs. Since runs cannot be saved mid-progress, an unexpected server restart will end the current run for all connected players. If you need to restart for maintenance or configuration changes, coordinate with your players to find a natural break point between runs.
Scheduled restarts: If you have scheduled restarts enabled in GPanel, keep in mind that these will end any active run. Consider scheduling restarts during off-peak hours when players are less likely to be mid-run. See Scheduled Restarts for configuration details.

Common Issues

Server Not Appearing in the Browser

  • Confirm the server is fully started in GPanel. The server must complete its startup sequence before it registers with the master server.
  • Verify that the ADVERTISE startup variable is set to 1.
  • New servers can take several minutes to appear in the browser. Try direct connect while you wait.
  • Check the GPanel console for errors. If the server is crashing or failing to initialize, it will not appear in the browser.

Players Cannot Connect

  • Ensure the server is running and not in a crash loop. Check the GPanel console for error messages.
  • If you set a password, confirm players are entering it correctly. Passwords are case-sensitive.
  • Verify that both you and your players are running the same game version. Risk of Rain 2 updates can break compatibility between mismatched versions.
  • If using mods, ensure all connecting players have the same mods and versions installed. Mod mismatches are the most common cause of failed connections on modded servers.

Related Articles

Need Help?

If you run into an issue not covered in this guide, our support team is ready to help. Submit a support ticket and include your server ID, a description of the problem, and any relevant console output from GPanel.


آیا این مقاله مفید بود؟

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.