Lead Engineer @ Packetware
Keeping your Rust server on Raknet v2 with query port
In this article we will be looking at how to prevent your server from automatically switching to the new SteamWorks networking when the update comes and introduces bugs. We can only hope that the inevitable bugs aren't too significant, but if you want to stay on the most tried and tested version you will need to use Raknet v2 implementation from Facepunch.
Facepunch has implemented a new system to mirror the new SteamWorks networking without the query being embedded onto the same port. This will force the following defaults for servers.
| Usage | Default Port | Protocol |
|---|---|---|
| Game Port | 28015 | UDP |
| RCon Port | Game + 1 | TCP |
| Query Port | RCon + 1 / Game + 1 (Based on which is higher) | UDP |
| App Port | Game + 67 | TCP |
All you need to do this is to append the
-raknet -queryport 28017
Console variables to your startup parameters and at your server startup it will push it into Raknet v2 mode. With this you can select your preferred port you would like to use for the a2s_info server browser queries.
