Docs /
Rust
Rust runs on the generic UDP profile today. Put the game port behind ZEROPING, hand players the public port the panel gives you, keep RCON private, and lock the origin before wipe day.
Coming soon Ports UDP 28015UDP 28017
The ports Rust uses
These are common defaults. Check your host and your start command before you rely on them.
| Port | Protocol | What it is | Route |
|---|---|---|---|
28015 | UDP | Game traffic (server.port) | Through ZEROPING |
28017 | UDP | Steam server queries (server.queryport) | Optional, through ZEROPING |
28016 | TCP | RCON and WebRCON (rcon.port) | Keep private |
28082 | TCP | Rust+ companion app (app.port) | Keep private |
Players only ever need the game port. The query port answers tools that show your player count; it is optional here, for the reason in Public ports.
Set the ports on your server
If you want the query port behind ZEROPING too, give it a number close to the game port, so both fit in one service (a service carries a range of up to 10 ports of one protocol).
./RustDedicated -batchmode \
+server.ip 0.0.0.0 \
+server.port 28015 \
+server.queryport 28017 \
+rcon.port 28016 +rcon.web 1 \
+server.hostname "Your Server" Restart the server after changing ports. Nothing else in your config, plugins or wipe schedule changes.
Add the service
In the panel go to Services, choose Add game server, then Rust. The panel selects the generic UDP profile.
Enter your origin IP address and the first port,
28015. To bring the query port along, also enter28017as the last port; the service then forwards28015to28017.Leave PROXY protocol off. Rust does not read it: the server would take the header for game data and players could not join.
Choose the location closest to your server, name the service and save.
Open the Connect tab. It shows your ZEROPING address, for example
yourname.play.zeroping.hk, and one line per forwarded port: your origin port and the public port players use, for example28015 → 41730.
Public ports
The edge gives each origin port its own public port. A public port is not always the same number as your origin port, and in a range the public ports are not always consecutive. Always hand out the numbers from the Connect tab.
That matters for anything Rust announces by itself. Rust tells Steam its own address and server.queryport, which are your origin's, so:
- The in-game server browser lists your server under the origin address. Once the origin is locked (below), that entry no longer answers anyone but ZEROPING, so players join with the connect line instead.
- Query tools you set up yourself, such as a player-count bot, should query the ZEROPING address on the public port shown for
28017, not on28017. - Players connect to the public port shown for
28015.
Give players your own name
Players should type a name you control, not the ZEROPING address. Add a CNAME at your DNS provider that points it at the address from the Connect tab. A CNAME carries no port, so the connect line still names the public port.
play.example.net. 3600 IN CNAME yourname.play.zeroping.hk. Players join from the F1 console:
client.connect play.example.net:41730 Replace 41730 with the public port from your Connect tab. Post the connect line on your Discord and website.
Keep RCON and Rust+ private
RCON on TCP 28016 is an admin door, not a player port, and ZEROPING never proxies it. Open it only to your own address, or reach it through a VPN or an SSH tunnel. We never ask for your RCON password.
Rust+ on TCP 28082 connects players' phones straight to the server, so it would reveal the origin. Leave it closed unless your community uses Rust+.
Close the origin
Protection only holds if nobody can go around it. Allow the game and query ports only from the ranges on the service's Connect tab, and admin ports only from your own address.
$ sudo ufw default deny incoming
$ sudo ufw allow from 203.0.113.0/24 to any port 28015:28017 proto udp
$ sudo ufw allow from 198.51.100.7 to any port 28016 proto tcp
$ sudo ufw allow from 198.51.100.7 to any port 22 proto tcp
$ sudo ufw enable 203.0.113.0/24 and 198.51.100.7 are documentation examples. Use the ranges your panel lists and your own admin address. Add the SSH rule before you enable the firewall, or you lock yourself out.
Test it
On the Connect tab choose Check connection. A pass means the edge reached your origin on the game port.
Join with a real client through
client.connect play.example.net:<public port>.From a network that is not on your allow list, try the old origin address. It should time out.
If the check times out, the origin firewall is not allowing the ZEROPING ranges yet. If it reports the port as closed, compare server.port with the origin port in the panel. If players cannot join but the check passes, make sure they use the public port, not 28015. Make the switch a few days before a wipe, not on wipe day.
Was this helpful?