This guide walks you through hosting your own Rust server, whether on a dedicated machine or a rented VPS. You’ll learn how to install SteamCMD, download the server files, configure your server, and get it running for you and your friends. By the end, you’ll have a fully functional Rust server that you can manage and customize.
What You’ll Need
- A computer or VPS with at least 8 GB of RAM (16 GB recommended for a smooth experience with more than a few players).
- At least 20 GB of free storage space (the game files are around 10 GB, plus room for saves and logs).
- A stable internet connection with a public IP address (or port forwarding on your router).
- SteamCMD (the command-line tool for downloading Steam games and server files).
- Basic familiarity with using a command line (Command Prompt on Windows, Terminal on Linux/macOS).
Step-by-Step
- Install SteamCMD
- Windows: Download SteamCMD from the official Valve developer page and extract it to a folder, e.g.,
C:\steamcmd. - Linux: Open a terminal and run
sudo apt update && sudo apt install steamcmd(Debian/Ubuntu) or use your distribution’s package manager. For other distros, download the tarball from the Valve site and extract it.
- Windows: Download SteamCMD from the official Valve developer page and extract it to a folder, e.g.,
- Create a directory for the server
- Make a new folder, e.g.,
C:\rustserveron Windows or/home/youruser/rustserveron Linux. This is where the server files will live.
- Make a new folder, e.g.,
- Download the Rust server files
- Open a command prompt or terminal in the SteamCMD folder.
- Run SteamCMD and log in anonymously:
login anonymous - Set the install directory:
force_install_dir C:\rustserver(Windows) orforce_install_dir /home/youruser/rustserver(Linux). - Download the server:
app_update 258550 validate. This downloads the dedicated server files (app ID 258550). Wait for the download to finish (it can take a while). - Exit SteamCMD with
quit.
- Create a startup script
- Create a file named
start.bat(Windows) orstart.sh(Linux) in your server folder. - Windows content:
@echo off
cd /d C:\rustserver
RustDedicated.exe -batchmode +server.port 28015 +server.level "Procedural Map" +server.seed 12345 +server.maxplayers 50 +server.hostname "My Rust Server" +server.description "A friendly Rust server" +server.url "http://example.com" +server.identity "my_server" +rcon.port 28016 +rcon.password "change_this_password" +rcon.web 1 - Linux content:
#!/bin/bash
cd /home/youruser/rustserver
./RustDedicated -batchmode +server.port 28015 +server.level "Procedural Map" +server.seed 12345 +server.maxplayers 50 +server.hostname "My Rust Server" +server.description "A friendly Rust server" +server.url "http://example.com" +server.identity "my_server" +rcon.port 28016 +rcon.password "change_this_password" +rcon.web 1 - Make the script executable on Linux:
chmod +x start.sh.
- Create a file named
- Configure your server
- Edit the startup script to set your desired server name, description, seed (for map generation), max players, and RCON password (used for remote administration).
- You can also add other parameters like
+server.worldsize 4000(map size in meters) or+server.tickrate 30(default is 30).
- Run the server
- Execute the startup script. On Windows, double-click
start.bat; on Linux, run./start.sh. - The server will start generating the world and then display console messages. Wait until you see something like “Server startup complete” or “Ready” before connecting.
- Execute the startup script. On Windows, double-click
- Connect to your server
- Open Rust, press F1 to open the console, and type
client.connect localhost:28015(if playing on the same machine) orclient.connect your_public_ip:28015(if connecting from another computer). - If you’re hosting on a VPS, replace
localhostwith your VPS’s IP address.
- Open Rust, press F1 to open the console, and type
- Port forwarding (if hosting at home)
- Log into your router’s admin panel and forward TCP and UDP ports 28015 (game) and 28016 (RCON) to your computer’s local IP address.
- Make sure your computer has a static local IP or set up a DHCP reservation to avoid IP changes.
Common Mistakes
- Forgetting to validate files: Always use
app_update 258550 validateto ensure all files are downloaded correctly. Skipping validation can lead to missing or corrupted files. - Using the wrong app ID: The Rust server app ID is 258550. Using the client ID (252490) will download the game client, not the server.
- Not setting a strong RCON password: Leaving the default or a weak password makes your server vulnerable to unauthorized control.
- Ignoring firewall rules: Your OS firewall may block the server ports. Allow inbound traffic on 28015 and 28016.
- Running out of memory: Rust servers are memory-hungry. If the server crashes or lags, check available RAM and consider reducing map size or player count.
Tips
- Use a dedicated machine or VPS with a solid state drive (SSD) for faster world generation and loading.
- Set up automatic restarts (e.g., using cron on Linux or Task Scheduler on Windows) to keep the server fresh and reduce memory leaks.
- Back up your server folder regularly, especially the
server/your_identityfolder, to prevent data loss. - Install a server manager like Oxide (now uMod) to easily add plugins and mods.
- Monitor server performance with tools like
htopon Linux or Task Manager on Windows.
Troubleshooting
- Server won’t start: Check the console output for errors. Common causes include missing files (re-run
app_update), insufficient permissions (Linux: runchmod +x RustDedicated), or missing dependencies (install 32-bit libraries on Linux:sudo apt install lib32gcc1). - Can’t connect: Verify the server is running (look for “Ready” in console). Check your firewall and router port forwarding. Try connecting via
localhostfirst to rule out network issues. - High ping/lag: Ensure your internet upload speed is sufficient (at least 10 Mbps for a few players). Reduce max players or map size. Close other bandwidth-heavy applications on the host machine.
- Server crashes on map generation: This is often due to insufficient RAM. Try a smaller world size (e.g.,
+server.worldsize 3000) or add swap space. - RCON not working: Make sure you set
+rcon.port 28016and+rcon.passwordin the startup script. If using a web RCON, ensure+rcon.web 1is set and the port is accessible.
Frequently Asked Questions
How much RAM does a Rust server need?
For a small server (up to 10 players), 8 GB is the minimum. For 50 players, 16 GB is recommended. More players and larger maps require more memory.
Can I host a Rust server on a home computer?
Yes, if you have a decent CPU, at least 8 GB RAM, and a stable internet connection with port forwarding configured. However, a VPS is often more reliable and offers better upload speeds.
How do I update my Rust server?
Run SteamCMD again with app_update 258550 validate. This will download any updates. It’s a good idea to do this during off-peak hours.
How do I add plugins to my Rust server?
Install uMod (formerly Oxide) by downloading the appropriate build from uMod.org and placing the RustDedicated_Data/Managed files into your server folder. Then place plugin files in the oxide/plugins folder.
Can I run a Rust server for free?
Yes, you can host it on your own hardware, but you’ll need to cover electricity and internet costs. Free VPS tiers usually don’t have enough RAM or storage.
Why is my server not showing up in the community list?
Make sure your server is publicly accessible (ports forwarded) and that you’ve set +server.hostname and other parameters. It can take a few minutes for the server to appear. Also, check that your server isn’t behind a strict NAT that prevents listing.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Backup Not Enough Space? Fix It Now200.00 GB
- Approximate Match Lookup: Conditional Formatting
- GST on Delivery Charges in India: E-Commerce Rules
- Smart TV DNS Settings: Why They Change & How to Fix
- RabbitMQ Hosting for Startups: Managed vs Self-Hosted
- Starfield Keeps Crashing? Fixes That Work