How to Host a Rust Server: Setting Up and Hosting Your Own Dedicated Server in 2024

How to Host a Rust Server: Setting Up and Hosting Your Own Dedicated Server in 2024

Rust continues to be an ever-popular multiplayer survival game in which players gather resources and build shelters to survive in a harsh and unforgiving environment, not to mention other players prowling around to steal some hard-earned loot from you.

If you’re looking for something more, you can enhance your experience by setting up a dedicated Rust server of your own, shaping your gameplay as you wish, and potentially fostering a new community of survivors.

This article will provide the essential steps on how to host a Rust server of your own. Whether you’re just starting out or already a seasoned veteran looking for more ways to play, we’ll guide you in successfully establishing and managing your Rust server.

If you’re ready, get your starting resources ready, and let’s play some Rust!

Rust Server Prerequisites

Here’s the setup you’ll need to get a Rust game server up and running:

  • Operating system. Windows, Linux, or macOS. We recommend a Linux-based operating system for hosting any game server due to its stability and efficiency. 
  • CPU. At least a quad-core processor is required, while a six-core processor is ideal for larger servers.
  • RAM. At least 8 GB, but 16 GB is recommended for hosting a lot of players.
  • Storage. 20 GB as a minimum, but more disk space may be required as your server grows.
  • Internet connection. A stable and fast connection (minimum 100 Mbps) is essential for seamless gameplay and handling multiple player connections. 

How to Host a Rust Server

Having fulfilled all the Rust server requirements, let’s dive into the Rust server setup tutorial:

1. Choose the Right Virtual Private Server

Selecting an appropriate virtual private server (VPS) is crucial for hosting a new Rust server. The VPS will be the dedicated server where your Rust game environment resides, so choosing the right hosting provider is vital.

Hostinger’s game server hosting plans are an excellent choice for Rust servers. They offer reliability, performance, and scalability for an enjoyable gaming experience.

As one of the top VPS providers, Hostinger’s plans offer various advantages:

  • Premium hardware. Hostinger’s game server hosting uses industry-standard Intel Xeon processors and SSD storage, ensuring fast and lag-free performance for Rust servers.
  • Multiple server locations. Hostinger has servers in numerous locations around the globe. This ensures low latency, which is critical for a hassle-free Rust gaming experience.
  • Instant setup. With less than five minutes of onboarding, your VPS can be up and running in no time.
  • Customization and control. Full root access to install server mods and plugins provides extensive customization and control over your Rust server environment.
  • Robust AI assistant. Hostinger’s VPS includes an AI Assistant that offers guided assistance, scripts, and commands customized to your needs.
  • Affordable and scalable plans. Starting at just $5.99/month, Hostinger’s dedicated game server plans are scalable to meet the growing needs of your Rust server.

2. Set Up Your VPS

Hosting a Rust server on a Linux VPS is simple with Hostinger. Here’s how to get started with our VPS for Rust:

  1. Choose a game server hosting plan based on your server size and player count. Complete the registration and checkout process.
  2. Once done, access your VPS dashboard. Here, you will find the option to set up your new VPS plan. Click on Setup to proceed.
  3. During setup, you’ll be prompted to choose your server name, set a secure password, and select a data center location nearest to most of your players.
  4. After setup, verify that your VPS is running by accessing the VPS information tab within the VPS dashboard. If it’s offline, click Start to initiate it.
  5. Navigate to the SSH access tab to find the details needed to access your server.
  1. Open a server connection window through the command line or an SSH client like PuTTY.
  2. Once connected, update your Linux packages to ensure your server is up-to-date. This secures your server and improves its performance. Execute the following Linux command:
sudo apt update && sudo apt upgrade

3. Install the Rust Server

With your VPS ready, the next step is installing the Rust dedicated server. Follow the instructions below:

  1. Install SteamCMD, the command-line version of the Steam client, to install and update server files for games like Rust. In order to do that, simply run the following:
sudo apt install steamcmd
  1. Install necessary dependencies such as screen or tmux to run server processes in the background. Use the command:
sudo apt-get install screen tmux
  1. Create a specific directory for your Rust server files by executing the command below:
mkdir rust_server
  1. Within the desired server folder, use SteamCMD to download the server files with the command:
steamcmd +login anonymous +force_install_dir ./rust_server +app_update 258550 +quit

This command logs you into SteamCMD, defines a dedicated Rust server folder, and downloads the necessary server files. The number 258550 is the Steam app ID for Rust.

After the installation, the rust_server directory will be the file location for all Rust server files. Navigate to this Rust server folder whenever you need to access your files.

4. Modify Server Settings

After successfully installing the Rust server, you can configure the game server to match your preferences and requirements. To start, navigate to your Rust installation directory using the command:

cd rust_server

The primary configuration file within this folder is typically named server.cfg. Open it using the nano text editor:

nano server.cfg

This file contains various settings you can modify, such as:

Server Name and Description

Assign a unique name to your server using the line:

server.hostname "Your Server Name"

To add a server description that outlines your server’s theme or rules, include the following:

server.description "Your Server Description"

Map Type

Choose the type of map you want to use by modifying the line:

server.level "Procedural Map"

Several map types you can use include:

  • Procedural Map. Randomly generated landscapes offering a unique experience in every game.
  • Barren. Less detailed for better performance, focusing on simpler terrain.
  • Hapis Island. Fixed layout with consistent features for predictable gameplay.
  • Savas Island. Smaller, more combat-focused map, ideal for quicker and more intense matches.
  • Custom Maps. Created by the community for modified servers, these maps offer varied and unique designs.

Server Port

Ensure the server port is correctly set for players to connect by including:

server.port 28015

The default port for Rust game traffic is 28015. For the RCON (Remote Console) protocol, it is 28016.

Additionally, port forwarding on your network is crucial to allow external connections to your server, such as from a local network.

For Rust, this typically involves configuring your router to forward TCP port 28015, ensuring players can connect to your server from outside your network.

Player Slots

Define the maximum number of players that can join your server with:

server.maxplayers 50

Game Mode

Set the game mode according to your preference using:

server.pve true

Here are several game mode options to use:

  • PvE (Player vs. Environment). Set to true for a survival-focused mode with limited or no player combat.
  • PvP (Player vs. Player). Set to false for classic Rust gameplay emphasizing player conflict and strategy.
  • Softcore. Set to [appropriate command], which reduces death penalties and is suitable for a less intense experience.
  • Hardcore. Set to [appropriate command], increasing difficulty and survival challenges for experienced players.

Replace [appropriate command] with the actual commands for the Softcore and Hardcore modes once they are confirmed. These commands can vary and might need specific Rust server configuration to implement.

Other Advanced Settings

Adjust crafting speeds with:

crafting.instant true

Set day and night cycles with:

env.daylength 45

Determine the rate at which players gather resources with:

gather.rate dispenser 2

Configure what loot appears in the game using various loot configuration lines.

After making changes, press CTRL + X → Y to save, then Enter to exit the editor.

Then, restart your server for the changes to take effect by accessing Hostinger’s VPS dashboard and clicking Reboot VPS.

This method is used because Rust doesn’t provide a dedicated restart command within the command prompt.

5. Launch the Rust Server

Now that your own Rust server is configured, it’s time to launch it and explore the gameplay you’ve crafted. Ensure you are in your server directory, then start the Rust server with the following command:

./RustDedicated -batchmode

If you want to customize the game settings when starting, use this command instead:

./RustDedicated -batchmode +server.port 28015 +server.level "Procedural Map" +server.maxplayers 100 +server.hostname "Your Server Name" +server.identity "your_server_identity"

This startup script initiates the Rust server process with parameters such as port, map type, maximum players, server name, and unique server identity.

After your server starts, monitor the server console for errors or warnings. This is important for troubleshooting Rust server issues during startup. Specifically, pay attention to messages related to server initialization, network connectivity, and script executions.

Additionally, check your running server presence in the client-server list to confirm a successful startup.

You can also test the connectivity to your server using a Rust client from your PC. Enter your VPS’s IP address and port in the format:

connect 123.456.78.90:28015

Remember to replace 123.456.78.90 with your server’s actual IP address.

6. Manage and Maintain the Rust Server

Effective management and maintenance of your private Rust server are crucial for a stable and enjoyable gaming experience. Here are some Rust server management tips for a smooth server operation:

Server Backup and Maintenance

To prevent data loss, regularly back up your server files. Using the best VPS for Rust server hosting, like Hostinger, streamlines the backup process.

With Hostinger, your server is automatically backed up every week. For more frequent backups, opt for the Upgrade option. To perform a manual backup instead, use Create Snapshot.

These features are accessible under Backup & Monitoring → Snapshots & Backups in your VPS dashboard.

Rust Server Performance Optimization

Monitoring and optimizing server performance is essential. Utilize Rust-specific tools and plugins to track performance, resource usage, and player activity.

Hostinger customers can use the Server Usage option for insights into CPU usage, RAM usage, disk space, and traffic data, with statistics available for various time frames.

You can also consider using plugins like Battlemetrics or RustAdmin to optimize further and prevent crashes.

Player Management

As the server owner, it’s important to regularly communicate with your player community to address their concerns or feedback. Use server admin commands to adjust map and world settings and PvP/PvE options to ensure engaging and fair gameplay.

Employing users command options is essential to maintain a positive gaming environment based on community feedback and needs. They include users kick <username> to manage player behavior, or users ban <username> for more serious offenses.

Community Building

Foster a positive community by setting clear rules, moderating effectively, and encouraging player interaction. Regular events or challenges can also greatly enhance player engagement.

Furthermore, maintain open lines of communication with your players through forums or chat groups. Implementing player recognition programs or community feedback sessions can also contribute to a vibrant and active gaming community.

Server Wipes and Updates

Regular server wipes help maintain balance and refresh the gameplay experience. Save current settings with server.writecfg before performing wipes and communicating server wipe schedules to your community.

Additionally, ensure your dedicated server is updated with the latest Rust version for enhanced security, improved performance, and new features. Run commands such as update_oxide or app_update 258550 to perform updates.

Batch File Configuration

For more efficient server administration, consider setting up batch script files. These scripts can automate tasks like server startup, updates, and backups. Create these scripts using a text editor and save them in your server directory.

For example, a simple batch script file to start the server might look like:

#!/bin/bash ./RustDedicated -batchmode +server.port 28015 +server.level "Procedural Map" +server.maxplayers 100 +server.hostname "Your Server Name"

A server update batch file could be:

#!/bin/bash steamcmd +login anonymous +force_install_dir ./rust_server +app_update 258550 +quit

For backups, a batch script might be:

#!/bin/bash tar -czvf rust-server-backup.tar.gz /path/to/rust_server/

Make them executable with chmod +x scriptname.sh, and run them from the command line as needed.

Conclusion

In this guide, we’ve covered the essential steps on how to make a Rust server, from choosing a robust VPS to its final launch. You are now prepared to manage a Rust private server, optimize its performance, and build a gaming community.

Regular maintenance and updates are crucial for providing an optimal server experience. Whether you’re hosting a private server for friends or a larger audience, the knowledge you’ve gained here will establish a standout gameplay experience.

Now, it’s time to enjoy the unique world you’ve created on your own private server. Happy hunting!

Author
The author

Paulius Zunda

Paulius is as a Content Editor who excels in creating engaging technology-based content, while his keen eye for detail ensures accuracy in all aspects of his work. In addition to his role, Paulius brings 4+ years of valuable experience to the team, with a particular knack for crafting YouTube-related content. Beyond his professional know-how, he is more than willing to talk to you about everything board games.