Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

Half-Life 2: RCON

Discover how to remotely manage Half-Life 2 game servers with RCON for flexible control and monitoring

12 November 20262 min read36 Views0 helpful

Introduction

RCON (Remote Console) is a network protocol that allows you to control game servers remotely. It provides access to the server console without needing to interact directly with the server environment. This way, you can execute administrative commands, adjust configuration parameters, or retrieve server status information.

In Half-Life 2, RCON is used to run server-side commands such as managing players, changing gameplay settings, or fetching diagnostic outputs. The connection is password-protected and operates through a designated port accessible via compatible RCON clients.

A major advantage of RCON is that you manage the server without needing to be connected as a player in the game. Server admins can conveniently monitor and control Half-Life 2 via external tools, command lines, or web dashboards—perfect for flexible remote management.

Configuration

Before using RCON, it must be enabled and configured. You do this by editing the configuration file under Configuration in the Gameserver Control Panel. In the server.cfg file, the following entry must be added or adjusted:

cfg
rcon_password "your-password-here"

Connecting via RCON

To connect to your Half-Life 2 game server via RCON, use the command-line tool rcon-cli. You can download it from the official GitHub repository. After downloading and installing it on your computer, establish the connection using the server’s IP address, RCON port, and RCON password.

You can find the assigned port in the Port Overview at the bottom of the settings page in the Gameserver Dashboard. The password and port must match the values in the panel or configuration file. Use the following command to connect and execute a command directly:

bash
rcon-cli -a <IP>:<PORT> -p <PASSWORD> command

RCON Commands

Once connected via RCON, you can execute various administrative and diagnostic commands on the Half-Life 2 game server. Available commands depend on the game engine but typically include player management, status queries, and server control.

CommandDescription
rcon_password <password>Authenticates for RCON access
statusDisplays server and player information
changelevel <mapname>Switches to the specified map
mp_timelimit <min>Sets the time limit per map
mp_roundtime <min>Sets the round time
sv_cheats 0/1Enables/disables cheat commands (admin only)
kick <playername>Kicks a player from the server
banid <duration> <SteamID>Bans a player for a specified time
exec <file.cfg>Executes a configuration file
say <message>Sends a message to all players

Conclusion

RCON is an essential tool for remotely managing Half-Life 2 game servers. It provides quick and direct access to administrative functions while ensuring secure access through password protection. Proper and secure configuration is crucial to maintain server stability and prevent unauthorized access.

If you have any questions or need assistance, our support team is available daily to help! 🙂

FAQ

Frequently asked questions

Add the line rcon_password "your-password-here" in the server.cfg file (Configuration tab, raw text view).
Use the command-line tool rcon-cli (available on GitHub at gorcon/rcon-cli), connecting with the server IP, RCON port, and RCON password using: rcon-cli -a <IP>:<PORT> -p <PASSWORD> command.
Check under More ports in the server details on your gameserver overview.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.