Skip to content

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.

Last updated 30 November 2026 v1.1

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.

PortProtocolWhat it isRoute
28015UDPGame traffic (server.port)Through ZEROPING
28017UDPSteam server queries (server.queryport)Optional, through ZEROPING
28016TCPRCON and WebRCON (rcon.port)Keep private
28082TCPRust+ 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).

Start command
./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

  1. In the panel go to Services, choose Add game server, then Rust. The panel selects the generic UDP profile.

  2. Enter your origin IP address and the first port, 28015. To bring the query port along, also enter 28017 as the last port; the service then forwards 28015 to 28017.

  3. Leave PROXY protocol off. Rust does not read it: the server would take the header for game data and players could not join.

  4. Choose the location closest to your server, name the service and save.

  5. 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 example 28015 → 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 on 28017.
  • 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.

DNS provider
play.example.net.  3600  IN  CNAME  yourname.play.zeroping.hk.

Players join from the F1 console:

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.

Origin server
$ 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

  1. On the Connect tab choose Check connection. A pass means the edge reached your origin on the game port.

  2. Join with a real client through client.connect play.example.net:<public port>.

  3. 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?

Products

Games

More

Reduce motion