How to open ports for RAGE:MP server (22005 / 22006).

admin

Administrator
Staff member
Sep 2, 2024
63
26
18
Credits
1,047
Hello everyone! If you get an error like in the screenshot or the error - "Connection lost" when starting YOUR server on a hosting or VPS, then most likely you forgot to open ports in the system (and/or router). In this tutorial I will explain how to do this, let's get started..

Open ports for the RAGE Multiplayer server on your VDS / DEDIC on Windows OS: open the PowerShell console as administrator and enter the following commands:
netsh advfirewall firewall add rule name="ragemp server" dir=in action=allow protocol=UDP localport=22005
netsh advfirewall firewall add rule name="ragemp server" dir=out action=allow protocol=UDP localport=22005

netsh advfirewall firewall add rule name="ragemp server" dir=in action=allow protocol=TCP localport=22005
netsh advfirewall firewall add rule name="ragemp server" dir=out action=allow protocol=TCP localport=22005

netsh advfirewall firewall add rule name="ragemp server" dir=in action=allow protocol=TCP localport=22006
netsh advfirewall firewall add rule name="ragemp server" dir=out action=allow protocol=TCP localport=22006

Attention! Do not forget to add the bind parameter to the config (conf.json) with the correct IP of your hosting. BUT! This step is not necessary, in new versions of ragemp-server if there is no bind parameter in the server config (conf.json), the server by default occupies all available network interfaces. On some hostings, entering this parameter can make it impossible to log in to the server, but with a different error. Therefore, I do not recommend doing this bind, only in certain cases.