01
Two places to configure a Rust server
Almost every Rust server variable can be set in two ways:
- in the launch line of
RustDedicated, preceded by a +: +server.hostname "My server";
- in the
server.cfg file, one variable per line, without the +: server.hostname "My server".
The file lives in server/<identity>/cfg/server.cfg, starting from the server folder, where <identity> is the value of server.identity. Facepunch's official wiki states that the server reads it at startup, that its values take priority over the launch line, and that the server never edits it: writing it is up to you. Create it if it does not exist.
Hence a simple rule:
- the identity, the ports and RCON go in the launch line: the server must know its identity before it knows where to look for its
server.cfg;
- everything that describes the server goes in
server.cfg;
- each variable is written in one place only, so you never wonder which of two values applies.
To find the exact name of a variable, the find command followed by a word, in the server console, lists the ones that contain it. If your server does not exist yet, start with creating a Rust server.
02
Launch parameters
Here is a launch line on Linux, based on the official wiki's example:
./RustDedicated -batchmode +server.port 28015 +server.level "Procedural Map" +server.seed 1234 +server.worldsize 4000 +server.maxplayers 50 +server.hostname "Mon serveur Rust FR" +server.identity "serveur1" +rcon.port 28016 +rcon.password "un-long-mot-de-passe" +rcon.web 1 -logfile serveur1.log
-batchmode: runs the server without a graphical interface.
+server.port: the game port, 28015 UDP by default.
+server.identity: the server's internal name, which also names the server/serveur1 folder holding the map, the saves and the cfg folder. Changing the identity means starting from an empty folder.
+server.maxplayers: the maximum number of connected players. The more there are, the faster the processor must be.
+server.hostname: the name shown in the server list. It can also go in server.cfg.
+server.seed and +server.worldsize: the seed and size of the procedural map. The wiki suggests a size of 1000 to 6000; a large map needs more memory and disk space. For a handmade map, see custom Rust map.
+rcon.port, +rcon.password and +rcon.web 1: the remote admin console, over TCP. rcon.web 1 selects web RCON, the mode the official wiki recommends. Pick a long password, different from all your others.
-logfile: writes the whole console to a file, handy for tracking down an error afterwards.
The query port (server.queryport, UDP) is used for the server list. If it is not set, it is one more than the greater of server.port and rcon.port, so 28017 with the example above. It must differ from the game port, and both must be reachable. To run several servers on one machine, change the ports and identity of each (see game server ports).
03
The server.cfg file
A typical server.cfg, to place in server/serveur1/cfg/:
server.description "Serveur vanilla français, wipe chaque premier jeudi du mois. Discord : discord.gg/exemple"
server.url "https://example.com"
server.headerimage "https://example.com/banniere.jpg"
server.logoimage "https://example.com/logo.png"
server.tags "monthly,vanilla,EU"
server.saveinterval 600
server.description: the text shown in the server's connection window. State the wipe schedule, the main rules and your Discord.
server.url: a link to your website or Discord, optional.
server.headerimage: the header image of the server's page, optional. server.logoimage sets the logo shown in the list. Both need a direct link to a publicly reachable .png or .jpg file.
server.tags: the server list tags, separated by commas.
server.saveinterval: the automatic save interval, in seconds (see below).
Tags help players filter the list. Facepunch sorts them into groups, and you should pick only one per group: otherwise your server may stop showing up in searches. The main ones:
- wipe schedule:
monthly, biweekly or weekly;
- difficulty:
vanilla, hardcore or softcore;
- region:
EU for a server in France (the others are NA, SA, WA, EA, OC and AF);
- play style, optional:
pve, roleplay, creative, minigame, training, battlefield, broyale, builds…
The server list only shows four at a time. The wipe tag must match your real schedule: see wiping a Rust server. Restart the server after editing server.cfg, since it is only read at startup.
04
Admins: users.cfg
Admin ranks are stored in users.cfg, in the same server/<identity>/cfg/ folder. The simplest way is through the server console:
users
ownerid 76561198123456789 "Pseudo"
moderatorid 76561198987654321 "Pseudo2"
users lists connected players with their SteamID64, the long number starting with 7656.
ownerid gives the owner rank, the highest; moderatorid the moderator rank.
- The name in quotes is just a reminder. The official wiki says the change is saved automatically. The player must disconnect and reconnect to get their rights.
You can also write the file yourself, but only while the server is stopped: otherwise the server may overwrite it with its own list. One line per person, in the official wiki's format:
ownerid 76561198123456789 "Pseudo" ""
moderatorid 76561198987654321 "Pseudo2" ""
Keep ownerid for people who need to be able to do everything. Admin commands, the F1 console and RCON are covered in Rust admin commands; finer permissions go through uMod plugins (see Rust plugins with uMod).
05
Automatic saving and backups
The server saves the game (bases, inventories, placed items) in the server/<identity> folder at regular intervals. server.saveinterval sets that interval in seconds, and server.save, typed in the console, forces an immediate save.
- A short interval limits what is lost in a crash, but each save puts work on the server, which may briefly slow down on a large, heavily built map.
- A long interval lightens the server, but a crash wipes everything since the last save.
A few minutes is a common compromise. Try it and watch the console when saves happen.
Backups. Automatic saving protects against a crash, not against a handling mistake or a lost disk. Also keep copies of the whole server/<identity> folder, with the cfg folder, taken while the server is stopped and stored off the server. Before a wipe, a copy lets you roll back if something goes wrong. If you install the server yourself, the guide Rust server on a VPS shows how to run it as a service.
06
On a CloudFive server
On our Rust hosting plans, from €9.50 per month, the server is managed from the customer area at manager.cloudfive.fr:
- the map seed and size are chosen without writing a launch line;
- wipes are scheduled in the Wipes tab;
- uMod (Oxide) installs so you can add plugins;
server.cfg and users.cfg are edited with the file manager or over SFTP, and the console is where you run ownerid, find or server.save;
- backups are started from the customer area, on top of the game's automatic saving.
Servers run in France on AMD Ryzen 9 9950X, DDR5 memory and NVMe storage, on our own network, with Anti-DDoS Premium included and a game-specific profile. Monthly, with no commitment, and support in French 7 days a week. To administer the whole system yourself, a gaming VPS is also an option.
07
Frequently asked questions
Where is a Rust server's server.cfg?
In server/<identity>/cfg/server.cfg, starting from the server folder, where <identity> is the value of server.identity. The server does not create it: create it yourself and write one variable per line, without the + used in the launch line.
server.cfg or launch line: which one wins?
According to Facepunch's official wiki, server.cfg is read at startup and its values take priority over the launch line. The safest approach is still to write each variable in one place only, and to keep the identity, ports and RCON in the launch line.
How do I become admin on a Rust server?
In the server console, type ownerid followed by your SteamID64 and a name in quotes, then reconnect to the game. The rank is stored in users.cfg; only edit that file by hand while the server is stopped.
Which tags should I set on a Rust server?
Set server.tags with comma-separated tags, only one per group: for example monthly for the wipe schedule, vanilla for difficulty and EU for the region. The server list only shows four at a time.
How do I set up automatic saving on a Rust server?
With server.saveinterval, in seconds, in server.cfg. A short interval limits losses in a crash but puts more load on the server; the server.save command forces an immediate save.