A RCON client for executing commands on a remote RCON server.
This Go-based RCON client allows Minecraft server administrators to send commands to their server over a remote RCON connection. With this client, you can easily send commands and view output on the console without having to log in directly to the server.
This client implements the RCON protocol used by Minecraft servers and has the potential to work with other game servers as well, though it hasn't been extensively tested with them.
To use the client, you will need to have access to the server's RCON password and IP address/hostname. Once connected, you can send commands through the client's terminal interface and receive output on the console like you would with the standard Minecraft server console.
Download the latest build for your platform from the latest release
You can also build your own executable. This requires:
git
go v1.18 or higher
make
Run these commands to build the executable:
git clone https://github.com/Sch8ill/rcon
make -C rcon
mv rcon/build/rcon-cli rcon-cli
rm -rf rcon
USAGE:
rcon [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--address value, -a value address of the server you want to connect to (localhost:25575 for example) (default: "localhost")
--password value, -p value password of the RCON server you want to connect to (default: "minecraft")
--command value, -c value a single command to be executed
--timeout value, -t value timeout for the connection to the server (default: 7s)
--no-colors, --no-colours if the cli should not output colors (default: false)
--help, -h show help
--version, -v print the version
Move into the directory of the executable and open up a terminal.
Open up an interactive RCON terminal:
./rcon-cli -a <the-servers-address> -p <the-servers-password>