RCON (Remote Console) is a network protocol that lets you control your game server remotely. You can use it to run administrative commands without being connected to the game, for example to manage players or check the server status.
RCON is password-protected in Avorion and disabled by default. This guide explains how to enable RCON on your VPS and connect to it.
The RCON settings are stored in the server.ini configuration file. If you set up Avorion using the Game Server Installer, you can find it at C:\\ZapX-GameServers\\avorion\\data\\avorion_galaxy\\server.ini.
- Connect to your VPS using Remote Desktop.
- Stop the server using the
Avorion (avorion) - Stopshortcut. Avorion rewritesserver.iniwhen it shuts down, so any changes to the file while the server is running would otherwise be overwritten. - Open
server.iniand enter a secure password forrconPassword. RCON remains disabled as long as this value is empty. The port is set byrconPort. - Save the file and start the server using the
Avorion (avorion) - Startshortcut.
The installer does not open the RCON port automatically. To connect from outside your VPS, allow the port in the Windows Firewall and your VPS's network firewall. For more information, see Manage Windows Defender Firewall rules. We recommend allowing access only from your own IP address.
To connect to the Avorion server via RCON, you can use a command-line tool such as rcon-cli. Download it from the official GitHub repository. You will need your VPS's IP address, the RCON port, and the RCON password from server.ini. Use the following command to connect and run a command:
rcon-cli -a <IP>:<PORT> -p <PASSWORD> command
Once connected via RCON, you can run various administrative and diagnostic commands. Common commands include:
| Command | Description |
|---|---|
/save | Saves the current game world |
/status | Displays the server and player status |
/kick <playername> | Kicks a player from the server |
/ban <playername> | Bans a player from the server |
/unban <playername> | Lifts a player's ban |
/teleport <x> <y> | Teleports the player to the specified sector coordinates |
/tpto <playername> | Teleports you to another player |
/sethome | Sets the current sector as your home |
/home | Teleports you to your home sector |
/give <itemName> <amount> | Gives you items or resources |
