Skip to content

Set up a server

Richard Matthew edited this page Apr 14, 2024 · 18 revisions

Windows

  1. Go to the release page and download RageCoop.Server-win-x64.zip.
  2. Extract the zip with whatever tool you desire.
  3. Simply click RageCoop.Server.exe, now your server is running and Settings.xml will be generated.
  4. Remeber to add a firewall exclusion so the connection is not blocked: (change 4499 to other number if you're using a different port)
netsh advfirewall firewall add rule name="RageCoop.Server" dir=in action=allow protocol=UDP localport=4499

Linux

  1. Go to the release page and download RageCoop.Server-linux-x64.zip
  2. Run the following commands:
cd [the_directory_you_downloaded_ragecoop]
unzip RageCoop.Server-linux-x64.zip
chmod +x RageCoop.Server
./RageCoop.Server
  1. Now your server is running and Settings.xml will be generated, every time you want to run it just type ./RageCoop.Server again in terminal
  2. Firewall configuration may differ on different distro. Well... if you're using linux, you probaly don't need to be told what to do

Docker

The docker image for server is now available

docker pull ghcr.io/ragecoop/ragecoop-v:latest

Port forwarding

Normally you can't just run a server at your home, since your computer is behind a NAT firewall, which will randomly assign you a port or block all incoming connections. You'll need to forward a port to make your server reachable to others. Contact you ISP or use VLAN software(see below) if you're unable to do that.

Configuring the server

All server seetings are stored in Settings.xml located at the working directory, you can see all avalible options here

VLAN

RAGECOOP comes with built-in ZeroTier intergration, allowing you to host a public server at your home without complex setup. To use it, first download and install ZeroTier for your server and client PC, log in / sing up to https://my.zerotier.com/ and create a network, set UseZeroTier and AnnounceSelf to true and change ZeroTierNetworkID to your network in server settings, then start your server. Now you'll be able to connect to your server from the server list.

Restricting access to the server

It's not possible to set a server password, although if you want to announce the server but want to restrict access, you can use the Management resource.

  • Download RageCoop.Resources.Management.respkg from https://github.com/RAGECOOP/GTAV-RESOURCES/releases/tag/nightly and put it in the folder Resources\Packages
  • Run the server and execute the following commands in the server console
    • /register username password (replace username by your user name and password by your password)
    • /setrole username Admin (replace username by your user name)
    • /unregister Sausage (it's the default Admin user)
  • Press Ctrl + C to close the server
  • Edit Config.json in Resources\Server\data\RageCoop.Resources.Management and change AllowGuest to false.
  • Run the server again

Now only registered users (with /register command) can join the server, they must type the password in RageCoop menu.

Commands can also be executed in the game chat.