Command line or server.cfg
Rust reads its settings from the start command and from server.cfg. Facepunch's wiki says the file lives in rust/server/server.identity/cfg/ and that settings in it take priority over anything set on the command line. For a group server, the simplest habit is to keep the options in one place and not set the same one in both.
The settings, one by one
| Setting | What it does |
|---|---|
server.identity | The internal name of the server. It decides the folder where your server files are kept, for example a server1 folder. |
server.hostname | The name players see in the server list. |
server.seed | The map generation seed. Any value from 0 to 2147483647. |
server.worldsize | Map size. The wiki suggests 1000 to 6000, and warns that larger maps need more disk space and memory. |
server.maxplayers | The most players that can be on at once. |
On the command line the wiki shows these written with a plus sign, for example +server.seed 1234 and +server.worldsize 4000.
Choosing a map size for a group
It is tempting to go big. Resist it for a small group: the wiki is clear that larger maps cost more disk space and memory, and a huge map with eight friends on it means a lot of empty ground between bases. A mid-range value inside the recommended 1000 to 6000 band is a sensible start. You can use a seed your group has agreed on so everyone gets the same map each time you generate one.
Ports
- Game port:
server.portdefaults to 28015, over UDP. - Query port: if
server.queryportis not set, it defaults to one more thanserver.portorrcon.port, whichever is greater. It must not equalserver.port. - RCON: uses TCP, and the default RCON port is equal to
server.port.
Whatever sits in front of your server needs those ports open. If you change one, change the matching rule too.
RCON, the remote console
RCON lets you run server commands from a tool instead of the game console. It takes +rcon.port (the wiki example uses 28016), +rcon.password, and +rcon.web 1, which the wiki suggests. The wiki's example password is something obvious, and the page itself says to change it. Treat your RCON password like a key to the whole server: anyone with it can run admin commands. Do not share it with the group; share it with nobody.
Logging
-logfile <name> sends the console output to a file. The wiki suggests putting the date and time in the file name so each run gets its own log, which makes it much easier to find what happened before a crash.
A starting block
+server.identity "friends"
+server.hostname "Our Rust Server"
+server.seed 1234
+server.worldsize 3000
+server.maxplayers 10
+rcon.password "choose-your-own"
Change every value to your own. Remember that a different seed or size gives a different map, so decide before you start building.
Changing your mind later
The settings above shape the map at generation time. The Facepunch page does not describe wipe or save procedures, so this guide does not either; before you change the seed or size on a map your group has been playing on, make a copy of the identity folder and read the current Rust documentation for your game version.