RCON (Remote Console) is a network protocol that lets you control your game server remotely. This allows you to run admin commands without being a player on the server, for example, to send messages, kick players, or retrieve the player list.
Squad uses the Source RCON protocol over TCP. The connection is protected by a password and uses a dedicated RCON port.
Squad only enables RCON if a password is set. You can set it on your server using the startup parameters:
- Open the Configuration tab for your game server and select Startup Parameters.
- Enter a secure password in the RCON Password field.
- Save the settings and restart your server.
If you leave the RCON Password field empty, your server generates a random password every time it starts, which you cannot view. To use RCON, you must enter your own password.
You can find the assigned RCON port in your game server's Overview, in the Server Details section under Additional Ports, next to RCON.
When your server starts, it passes the port and password directly to Squad and rewrites the port in the ServerConfig/Rcon.cfg file each time. Therefore, only change the port and password through the startup parameters, not in this file. You can adjust other settings, such as the maximum number of simultaneous RCON connections (MaxConnections, default 5), in ServerConfig/Rcon.cfg under the Files tab.
To connect, you need an RCON program that supports the Source RCON protocol, such as the rcon-cli command-line tool from the official GitHub repository. You will need the following details:
- Server IP address
- RCON port
- RCON password
Use the following command to connect and run a command right away:
rcon-cli -a <IP>:<RCON-PORT> -p <RCON-PASSWORT> ListPlayers
You can use the same admin commands via RCON as you can in the game. Here are some examples:
| Command | Description |
|---|---|
ListPlayers | Shows all players and their IDs |
ListSquads | Shows all squads |
ShowCurrentMap | Shows the current map |
ShowNextMap | Shows the next map |
AdminBroadcast <Nachricht> | Sends a message to all players |
AdminWarn "<Spieler>" <Nachricht> | Sends a warning to a player |
AdminKick "<Spieler>" <Grund> | Kicks a player |
AdminBan "<Spieler>" <Dauer> <Grund> | Bans a player, e.g. 1d for one day or 0 for permanently |
AdminForceTeamChange "<Spieler>" | Moves a player to the other team |
AdminRestartMatch | Restarts the current round |
AdminEndMatch | Ends the current round |
Replace <Spieler> with the player's name or SteamID64.