
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.
Here's what you need to run a Rust dedicated server.
Small server, 1-40 players, vanilla
Medium server, 40-150 players with plugins
Large server, 150-500 players, modded
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.
Skip the manual SteamCMD installation, port forwarding, and systemd configuration. Install on your own computer and start hosting instantly.
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.
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" export AUTO_UPDATE="1" # Pull the container image docker pull ghcr.io/sturdystubs/aioegg:production
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
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
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" \ -e AUTO_UPDATE="1" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ ghcr.io/sturdystubs/aioegg:production \ ./start.sh
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 GameCPExplore step-by-step setup guides for other popular games supported by GameCP.
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