
Host a Rust Dedicated Server
The only aim in Rust is to survive. To do this you will need to overcome struggles such as hunger, thirst and cold. Build a fire. Build a shelter. Kill animals for meat. Protect yourself from other players, and kill them for meat. Create alliances with other players and form a town. Do whatever it takes to survive.
Hardware Requirements
Here's what you need to run a Rust dedicated server.
Economy
Small server, 1-40 players
Standard
Community server, 40-150 players
Pro
Large public server, 150-500 players
Start hosting from your own computer
Run a Rust server on your desktop, laptop, VPS, or dedicated machine — GameCP automates Docker setup, resource allocation, and Rust configuration instantly. Automatic port forwarding means your friends can connect without touching your router. Start local, scale to a VPS when you're ready.
Setup in 4 Steps
Skip the manual SteamCMD installation, port forwarding, and systemd configuration. Install on your own computer and start hosting instantly.
The Manual Way vs. GameCP
Manual Setup
- ✗Install SteamCMD manually
- ✗Configure 4+ firewall ports and router settings
- ✗Write systemd service files
- ✗SSH into server to edit configs
- ✗Requires a VPS or dedicated server
- ✗30-60 minutes if experienced
With GameCP
- One-click SteamCMD install
- Automatic port forwarding — no router config
- Host from your own PC, VPS, or dedicated server
- Docker container with auto-restart
- Visual config editor in browser
- Under 5 minutes total
Under the Hood
The full manual process to host a Rust dedicated server on a VPS. Or install GameCP on your own computer and skip all of this.
Configure & Prepare
Set your server settings, then install Docker, SteamCMD, and pull the Rust container image.
# Update system and install Docker sudo apt update && sudo apt install -y docker.io sudo systemctl enable --now docker # Create game server directory sudo mkdir -p /opt/gameserver # Install SteamCMD sudo mkdir -p /opt/steamcmd curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | sudo tar zxvf - -C /opt/steamcmd # Server configuration export LEVEL="Procedural Map" export WORLD_SIZE="3000" export WORLD_SEED="0" export GAMEMODE="vanilla" export FRAMEWORK="vanilla" export MODDING_ROOT="carbon" export SAVEINTERVAL="60" # Pull the container image docker pull ghcr.io/sturdystubs/aioegg:production
Install Server Files via SteamCMD
Download the Rust dedicated server using Steam App ID 258550.
# Download Rust server files (App ID: 258550) /opt/steamcmd/steamcmd.sh \ +force_install_dir /opt/gameserver \ +login anonymous \ +app_update 258550 validate \ +quit
Open Firewall Ports
Rust requires 4 ports to be open for game traffic and queries.
sudo ufw allow 2302/both sudo ufw allow 28016/both sudo ufw allow 28017/both sudo ufw allow 28082/both
Launch the Server
Start the Rust server using the configuration from Step 1.
Create the startup script
# Create the startup script cat > /opt/gameserver/start.sh << 'EOF' #!/bin/bash # Build startup arguments ARGS=(-batchmode) ARGS+=(+server.port 2302) ARGS+=(+server.queryport 28017) ARGS+=(+server.identity "rust") ARGS+=(+rcon.ip 0.0.0.0) ARGS+=(+rcon.port 28016) ARGS+=(+rcon.web true) ARGS+=(+server.hostname "") ARGS+=(+server.level "Procedural Map") ARGS+=(+server.maxplayers ) ARGS+=(+app.port 28082) ARGS+=(+server.saveinterval 60) ARGS+=(+server.gamemode "vanilla") # Modding framework if [ "vanilla" == "oxide" ]; then ARGS+=(+oxide.directory carbon) elif [ "vanilla" != "vanilla" ]; then ARGS+=(-carbon.rootdir carbon) fi # Optional fields - only include if value is non-empty [ -n "" ] && ARGS+=(+server.description "") [ -n "" ] && ARGS+=(+server.url "") [ -n "" ] && ARGS+=(+server.headerimage "") [ -n "" ] && ARGS+=(+server.logoimage "") [ -n "" ] && ARGS+=(+rcon.password "") [ -n "" ] && ARGS+=(+server.tags "") # Map configuration if [ -z "" ]; then ARGS+=(+server.worldsize "3000") ARGS+=(+server.seed "0") else ARGS+=(+server.levelurl "") fi # Execute exec ./RustDedicated "[@]}" EOF chmod +x /opt/gameserver/start.sh
Run the container
docker run -d \ --name rust-server \ -p 2302:2302/both \ -p 28016:28016/both \ -p 28017:28017/both \ -p 28082:28082/both \ -e LEVEL="Procedural Map" \ -e WORLD_SIZE="3000" \ -e WORLD_SEED="0" \ -e GAMEMODE="vanilla" \ -e FRAMEWORK="vanilla" \ -e MODDING_ROOT="carbon" \ -e SAVEINTERVAL="60" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ ghcr.io/sturdystubs/aioegg:production \ ./start.sh
Or skip all of this
GameCP automates every step above: Docker, SteamCMD, port forwarding, startup, and config. Install on your own PC and deploy a Rust server in under 5 minutes.
Deploy with GameCPMore Hosting Guides
Explore step-by-step setup guides for other popular games supported by GameCP.
Ready to Host Your Rust Server?
Install GameCP on your own computer and start hosting in minutes. Automatic port forwarding, zero config — your friends connect instantly.
No credit card required · Free tier available · Install local, scale later