Skip to content

Instantly share code, notes, and snippets.

@SanariSan
Last active October 18, 2025 13:59
Show Gist options
  • Save SanariSan/0475661f3bc73d897f017a46e28e9d35 to your computer and use it in GitHub Desktop.
Save SanariSan/0475661f3bc73d897f017a46e28e9d35 to your computer and use it in GitHub Desktop.
Local Rust (game) server startup
:: Launch inside the rust server directory
@echo off
:start
echo "Starting Rust server... To stop the server, type 'quit' in this window and press Enter."
RustDedicated.exe -batchmode -maxmemory 8192 ^
+server.port 28015 ^
+server.level "Procedural Map" ^
+server.seed 995522 ^
+server.worldsize 4000 ^
+server.maxplayers 2ownerid 76561198123456789 "TomSmith" ^
+server.hostname "Test" ^
+server.description "Test" ^
+server.identity "server1" ^
+rcon.port 28016 ^
+rcon.password "cringe404" ^
+rcon.web 1 ^
-logfile "rust_server_log.txt"
echo.
echo Server has been shut down or crashed. Restarting in 10 seconds...
echo Press Ctrl+C to cancel restart.
timeout /t 10
goto start
:: Need to have steamcmd in the PATH
steamcmd.exe +force_install_dir "X:\rust_server" +login anonymous +app_update 258550 validate +quit
timeout /t 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment