How to create your own Rust Server

Prerequisites

System requirements

  • 4 GB RAM Minimum for the server
  • i7 7700K
  • 25GB Space

Server Setup

The aim of this guide is to host a server you and a small group of friends 20 people maximum. If you want to host a large server with 50 people or more, then you would need to look into a dedicated solution. This is mainly due to the fact of the upload speed that most home broadband connections have aren’t good enough for large scale servers.

Download and Run Docker container

A docker container can thought of as a very light weight VM that you execute application inside. But we are using it because there is already server that is pre-built for us.

DockerHub Link: https://hub.docker.com/r/didstopia/rust-server

Reference Docker Flags: https://docs.docker.com/engine/reference/run/

Open your Terminal or Ubuntu Terminal App (Windows), copy and paste the following:

Okay, this looks like it’s doing a lot but we can break it down. You can just use this command to get a server up and running.

  • memory=”4g” Limits the container to only use 4G of RAM if you have performance issue increase this.
  • -P allows a port to talk from the container to your window host machine. The defaults will just fine, if you need to change them do the following:
  • -v stands volume you need to change <WHERE_YOU_WANT_SAVE_SERVER> to the place where you want to keep your server on your machine. For example on a folder on your desktop.
  • Change the password for rcon<CHANGE ME>
  • Change the server name <SERVER_NAME>
  • You can see more options here -> https://hub.docker.com/r/didstopia/rust-server

Connect to the server from the Rust Game

  • Start the Rust game from stream
  • Wait until you can see the main menu
  • Press F1 then copy and paste client.connect <HOST_IP>:28015 into the terminal that has opened and hit enter
  • First time you connect it might take a few minutes

Useful docker commands

Start Rust Server

If you already have the container there i.e you have already used docker run command.

This is need if you want to change anything in the create command, you will need to remove and create the server again. Keep -v <WHERE_YOU_WANT_SAVE_YOUR_SERVER> the same if you want to use the same server that you had before.

Useful Server Commands

https://rust.fandom.com/wiki/Server_Commands

Install Rust IO Map

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Richard Price-Jones

Richard Price-Jones

Software Engineer, Interested Finance and Tech