How to set the query port in Rust
Add +server.queryport 28017 to the server's launch options to set the UDP port the Steam server browser queries.
server.queryport
Sets the UDP port the server answers Steam server browser queries on.
+server.queryport <port> Examples
+server.queryport 28017 Common choice next to game port 28015.
Arguments
portRequired- UDP port for server browser queries.
What it does
The server browser contacts this port to read your name, player count and other details. If it is blocked, the server can still be joined by address but may not appear in the browser. Set it on the launch line and open it for UDP in your firewall.
The game's own description: UDP port used for Steam server browser queries; uses the game port if set to 0
Good to know
- Launch-line setting.
Run it on your server
Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.
Your own
game server.
CS2, Minecraft, Palworld and more, from $0.03 an hour.