How to Make a Rust server
Getting started with Rust can be quite intimidating, especially for new users, so this guide will walk you through each step. We'll be showing you how to do this on both Windows and Linux machines. This guide proceeds under the assumption you have a good understanding of your operating system.
This guide is not for GSK specific services and is not intended to be a guide for our services.
You should read these guides first:
SteamCMD is a command-line version of the Steam client you all know and love. It can be used to install servers for various games, include Rust, which we'll be talking about here.
Create a new folder in your C:/. For simplicity, just call it steamcmd. We'll be using this moving forward. Download SteamCMD for Windows and extract the contents of the zip file into the steamcmd folder.
To install for linux, first you need to create a new user account. From root user, run this cmd:
useradd -m steam
Next, cd into the home directory:
Then install the package. This can vary depending on distro.
For 64-bit machines, you'll need to run additional commands to add multiverse:
multiverse sudo dpkg --add-architecture i386 sudo apt update sudo apt install lib32gcc1 steamcmd
yum install steamcmd
Open terminal and type in the following command:
mkdir ~/Steam && cd ~/Steam
Then download and extract SteamCMD for OSX:
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz" | tar zxvf -
After running the SteamCMD client and allowing it to update, you'll be presented with a Steam> prompt. To install the rust server use this command to log in to the steam service, and download the server files.
Change the directory based on what's compatible with your operating system.
This will install a default vanilla Rust server. You can also save this as a .bat file, or .sh file to update your server later when a game update occurs.
To run your server, navigate into the install folder and run the RunServer.bat (for Windows). To configure your server, you can edit the file. You'll see the following lines:
C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir c:\rustserver\ +app_update 258550 +quit
+server.level "Procedural Map"
+server.hostname "Your Server Name"
+server.description "Description shown on server connection window."
In here, you'll see a few options that are useful. We're going to focus on the ones you'll likely be editing.
|+server.ip||0.0.0.0||Leave this as default unless you're using multiple IP's.|
|+server.port||28015||0||65535||Port the server will use.|
|+server.hostname||"Your Server Name"||The name that will show up on the server list.|
|+rcon.ip||0.0.0.0||The IP to the rcon service.|
|+rcon.port||28016||0||65535||The port that the rcon service will use.|
|+rcon.password||YourPassword||Password used to connect to Rcon. Must be alphanumerical.|
|+server.maxplayers||10||0||2000||maximum number of players allowed at one time.|
|+server.worldsize||3000||1000||6000||The size of your map in m2|
|+server.seed||50000||0||2147483647||The base seed ID used to generate your map.|
|+server.identity||my_server_identity||Changes the name of the instance. Useful if you wish to run multiple instances using the same install. Can create multiple batch files each with their own identity.|
If a port is already in use, your server will not run. It must be a port number you know for a fact is not being used. (ie. port 80 is typically used for web servers, Skype, and many other services.). If you're running multiple instances of the same server, ensure they each have their own unique server.port and rcon.port.
RCon stands for Remote Console. It's used for various adminsitrative actions such as giving other users moderator or administrator, giving items, etc. There are several GUI based options online you can use, or you can use the same commands from the in-game F1 menu.
If you have a particularly bad person on your server, you can ban them quickly via your RCon or in-game using the F1 menu, or by editing your cfg/bans.cfg file located within the server's files.
To ban via the ingame menu, press F1 and type this command
ban "name" "reason"
The reason is entirely optional. This will write the reason to the bans.cfg file for later reference.
Was there anything that you missed while looking in this guide? Make sure to let us know so we can update our guide and make it even better!