Creating a server
- System based on Windows, Linux or OSX
- 8 GB free RAM (6k map will use more)
- 8 GB free disc space (SSD/NVMe highly preferred)
To estimate server RAM requirements you can use this server RAM estimation tool created by Pine Hosting.
These values are not fixed and highly depend on the use case and population of the server. You do NOT need a Steam account to install and run a Rust server, but you will need a steam account with Rust to join and play.
Facepunch has provided this
Rust_server.zip file for a quick installation of a local server that you can find here
Simply extract the contents of the zip file to the file location you want it on your PC and then edit the
Run_DS.bat as you wish to edit the server's name/description/seed/size and any startup configurations.
To start the server simply run the
Run_DS.bat. The server will check for updates and then validate all files before starting.
- Rust's server software is installed and updated using the SteamCMD program. The Steam App ID is 258550).
- Visit Valve's SteamCMD Wiki for the download link, and more information.
- Check out the Linux server installation for how to download, install, and use the program. Windows is very similar.
Rust has beta branches available for your server if you are wanting to test new features not released to the public. To set up a server with one of these beta branches, you need to change your SteamCMD parameters slightly. For example, you can choose ONE of these branches:
- Visit https://umod.org/games/rust and Click the appropriate button. There is a version for Windows and Linux. It will download a
.zipfile which includes all the necessary files to allow support for plugins.
- Extract the .zip file into your server and overwrite any files.
- Any time there is a server update oxide will come out with an update shortly after. You must do this every time the server is updated.
Your server needs to know how you want the server to run. There are numerous parameters you can pass at startup. See Rust Dedicated Server on Valve's Wiki, it's kind of dated and a lot repeated here but lists some variables you might want to change. You can use the
find command in your server console to look for something too.
An example command line to run a Windows server would be:
That looks like a lot, but lets break down each item one by one:
|-batchmode||Tells the server to run without a GUI|
|+server.port 28015||Sets the port people will use to connect to the game||28015 is default. This port is UDP.|
|+server.level "Procedural Map"||Sets the type of map.|
|+server.seed 1234||Sets the random seed for how the map is generated||This number can be any value 0-2147483647|
|+server.worldsize 4000||Sets the world size.||The larger the map, the more disk space and memory you need. Use 1000 to 6000|
|+server.maxplayers 10||Sets the max number of players connecting at one time||The more players, the faster your computer CPU needs to be|
|+server.hostname "Tom Server"||Sets a server name||Name of server as shown on the client server list|
|+server.description "Awesome!"||Sets a description for your server||Description shown on server connection window, for example you could show the size or intent of the server.|
|+server.url "http://mysite.com"||If you have your own website, you can set it here.||You can omit this.|
|+server.headerimage "http://mysite.com/serverimage.jpg"||Sets the picture for the server||You can omit this.|
|+server.identity "server1"||This is the internal name of the server.||This example name will be used to create a "C:\Rust\MyServer\server1" directory for all of your server files.|
|+rcon.port 28016||Set the remote connect port.||RCON clients connect to this for admin configuration/control. This port is TCP|
|+rcon.password letmein||Sets the remote connect password for remote administration.||Change this value!!!|
|+rcon.web 1||Sets the type of remote connect method.||rcon.web 1 is suggested.|
|-logfile <name>||All console output goes into this file.||using date/time in the filename is suggested.|
You will see a lot of information flying by as the server starts up, maybe even some errors(you can probably ignore). It will take a few minutes to fully start, look for
Server startup complete and you should be able to connect and play.
- Change file explorer to show known file extensions
- Navigate to "C:\Rust\MyServer"
- Right click and select "New | Text Document"
- Change the name to "RunServer.BAT" and hit enter
- Confirm file extension is fine
- Right click on file name and select edit
- Copy the example command line above and paste into notepad
- Change the settings to what your server should be (seed, password, worldsize, maxplayers)
- Save (TODO add notepad screenshots)
- Run this batch file.
See an example file from the 'quick start' zip above. Your batch file can be as simple or robust as you want. An example of some things you may want to do would make your batch file look like this:
- The ":start" line sets up a place for the "goto start" to jump to.
- The SteamCMD line does all of the steps to update your server just as you did manually above.
- The RustDedicated line is the line to start your server
- The "goto start" line is run when the server is shut down via failure or command "restart" in the server.
There are many other things you could put in this, such as logging the restart or starting other background services that you use for your server. All of this is optional. Keep in mind if you run SteamCMD in your startup script this will overwrite an oxide install and put your files back to vanilla.
Few things actually need to be passed at startup. A good option is creating a
server.cfg file in your
rust/server/server.identity/cfg/ folder and putting changes in that. The server reads this file at startup and takes priority over anything set on the command line. The server does not touch this file, it must be manually edited. You do not include the +/- on variables in this file. An example server.cfg file might look like this:
Linux uses SteamCMD to install and update the server software. It is similar to windows. Here is a simple step by step guide to install
Go to the directory where you want to install the server and create a directory for it. Here we are placing it in the users home directory.
Create another folder for SteamCMD and
cd into it:
Download and unpack SteamCMD, make SteamCMD executable:
Run steamcmd and download the server software. You can login as anonymous(you do not need a steam account to download the server) but if you don't +login you will get an error:
ERROR! Failed to install app '258550' (No subscription).
Return to your rust server folder with
runds.sh file executable:
By default SteamCMD installs a very basic startup file. You can add any of the options found in the table above. Edit
runds.sh with your favorite text editor, and save.
Now you can run the script to start the server. The linux console is not interactive like the windows version. You will need a RCON client to send commands to the server. You can put the process in the background, and access the logfile for output.
An alternative/easier way to see live console output is run it in a screen session. ArchLinux Screen Wiki
This command creates a screen called "rust_server" and runs your server in it. To detach the screen and return to your terminal, press
You can list and attach your screens with this command:
If no name is given, you will see a list of sessions, and you should see
rust_server is listed.
You can reconnect to the screen and see what's happening by running
screen -x rust_server (-r does the same thing).
Again you will need a RCON client to manage the server on Linux. Facepunch has an online remote web console but unfortunately it is not HTTPS! See the table above for RCON configuration.
As of 2nd February 2023 Rust game servers have a separate queryport along with the existing server.port. This is to support the new multi-threaded networking (performance benefit). This is not related to swnet (Steam networking).
- server.port and server.queryport both need to be open and accessible, these ports are UDP
- server.port and server.queryport can NOT be the same port
- if server.queryport is not explicitly set in your start file then it will become the server.port+1
- server.queryport and rcon.port can share the same port (but advise against it)
Launch Rust from the Steam library and when you get to the menu hit f1 and type
connect localhost:28015 (or whatever server.port you've used) and hit enter. Alternatively, you can just use
connect as it's the equivalent of before-mentioned command with full IP and port.
If you've installed and launched the server correctly you should now connect to the server!
Here we will determine what IP address that is.
- Hold down the windows key and hit R
- In the Run Box that pops up, type
CMDand hit enter
- In the Command Box that runs, type
ipconfigand hit enter.
Your screen will have a section that looks similar to this
- Look for the line that starts with IPv4 Address and record this number
This is the IP address for your Rust Server that you will use to connect to it.
You can run the server using the IP address set by your local router.
In Step 7 above, we found the IP address to be 192.168.1.2
In step 5 above, we set the server port to be 28015
To test this, we are going to start a Rust client and check to see if we can connect locally.
Launch Rust from the Steam library and when you get to the menu hit f1 and type
connect 192.168.1.2:28015 (or whatever your information is) and hit enter
If you've inputted the correct information and have installed and launched the server correctly you should now connect to the server!
If the server is running and you are connected you can add yourself from the server console, or if your server is Linux you will need to do it via RCON. These are server commands don't confuse this with SteamCMD.
users command to print out players and get your steamID
Now that you have the steamID run one of these commands to set yourself up as admin or moderator respectively:
Now write the config change with the following command:
You will need to reconnect and you should now be able to do admin/moderator functions, and give yourself things via the F1 menu.
An alternative method, only when the server is shut down is to edit the file directly. Goto the
rust/server/server.identity/cfg/ folder, and open up users.cfg. create a newline for each admin, it will look like this:
ownerid 76561198123456789 "TomSmith" ""
If you are just running on your local network, you don't need this step.
If you want people outside your network to be able to connect, you need to have your router forward traffic coming from the internet to the ports on your computer. You want your server to always be the same local IP. To do this, you need to set up your router to always assign the same IP address to the computer running your server. Also server and query ports are UDP protocol, RCON and Rust+ are TCP. Avoid using 'both' if your router has that.
Refer to your router user manual on how to set up forwarding.
Additional server commands are needed for Hosting a custom map
See Creating a hidden whitelisted server If you do not want your server to be public.