Skip to content

Easily host your Risk of Rain 2 dedicated server. No technical skills required. Runs on Linux.

License

Notifications You must be signed in to change notification settings

jsravn/ror2-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Risk of Rain 2 dockerized server

Docker Pulls

Host your Risk of Rain 2 dedicated server anywhere using Docker. Guide on Steam.

Quickstart

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.

Customize configuration

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 players
  • R2_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 browser
  • R2_PSW, the password someone must provide to join this server

FAQ

Can I run this on a VPS?

Yes, any Linux box works. For decent performance, you need 3 GB of free space and at least 2 GB of RAM.

Develop

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

Known Issues

  • 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 of xvfb fail. The current (trash) workaround is to just wait 5 seconds before firing Wine in the virtual framebuffer.

Acknowledgements

Thanks to InfernalPlacebo for the (unsuccesful, for now) troubleshooting on the server browser feature.

Built by Davide Casella, Fabio Nicolini, Antonio Vivace

About

Easily host your Risk of Rain 2 dedicated server. No technical skills required. Runs on Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 68.5%
  • Shell 31.5%