Skip to main content

Which Rust ports should you forward at home?

Start with the game port, which players enter when they join by address. Add the query port if you want the server to appear in the public browser. Both use UDP and need different port numbers.

Read the ports from your own server

Find server.port and server.queryport in your startup settings. Facepunch documents that when you leave the query port unset, Rust takes the higher of the game and RCON ports and adds one. Read the values on your host before copying any example from a guide.

Here is an example for a server using game port 28015 and query port 28017. Both rules point to the game's host. Allow both ports in its firewall and reserve its local address in the router if possible.

Read the ports from your own server
PurposeRouter ruleWhat proves it works
PlayUDP 28015 to 28015A friend joins by address from outside the home.
List the serverUDP 28017 to 28017The friend finds the correct entry in the browser.

Check each rule from outside your home

Ask a friend on another network to join by your public address and game port. Once that works, ask them to find the server in the browser if you enabled public listing. A successful direct join is your check for the game rule. Finding the server in the browser checks the listing path.

Remote console access and Rust+ have their own ports. Leave those out of this setup when the goal is to let friends play and find the server.

Sources

Analytics settings

Analytics are off.

Help improve RustSC with page counts and performance measurements. Privacy details