Host your Risk of Rain 2 dedicated server anywhere using Docker. Guide on Steam.
Assuming you have Docker installed, on the server:
docker run avivace/ror2server:0.1 -p 27015:27015/udp
Players need to start Risk of Rain 2, open the console pressing CTRL + ALT + ` and insert this command:
connect "SERVER_IP:27015";
Replace SERVER_IP
with the public IP of the server running the Docker Image.
By default, the server has no password and runs on UDP port 27015.
If you want to start the server on port 25000 with password hello:
docker run avivace/ror2server:0.1 -p 25000:27015/udp -e R2_PSW='hello'
Players will then join with:
cl_password "hello"; connect "SERVER_IP:25000";
You can pass these additional environment variables to customise your server configuration:
R2_PLAYERS
, the maximum number of playersR2_HEARTBEAT
, set to 1 to advertise to the master server (not currently working). If you enable this, you need to append-p 27016:27016
to your Docker command.R2_HOSTNAME
, the name that will appear in the server browserR2_PSW
, the password someone must provide to join this server
Yes, any Linux box works. For decent performance, you need 3 GB of free space and at least 2 GB of RAM.
git clone https://github.com/avivace/ror2-server
cd ror2-server
docker build -t ror2ds .
docker run --rm -d -p 27015:27015/udp --name ror2-server ror2ds
# See container output with:
docker logs -f ror2-server
# Open console in RoR
wmctrl -R Risk && xdotool key ctrl+alt+grave
- There's no way to make the Server Browser discover and correctly report your server. This is probably related to Steamworks not being detected by the server. If you manage to make that work while running under Wine, please ping us.
- For some reason,
winecfg
returns before completing the creation of the configuration files, making any subsequent call ofxvfb
fail. The current (trash) workaround is to just wait 5 seconds before firing Wine in the virtual framebuffer.
Thanks to InfernalPlacebo for the (unsuccesful, for now) troubleshooting on the server browser feature.
Built by Davide Casella, Fabio Nicolini, Antonio Vivace