# RCON (Legacy)

> ⚠️ **Notice: Legacy Integration**\
> This RCON integration method is now considered **legacy** and is **no longer recommended**.\
> We strongly suggest using the newer, more reliable [**RCON Adapter**,](https://docs.tebex.io/creators/tebex-control-panel/game-servers/rcon-adapter) which provides:

* Improved error handling
* Automatic command queuing
* Enhanced command targeting for games like Conan Exiles and Rust

***

### About Legacy RCON Integration

RCON (Remote Console) allows Tebex to connect to your game server directly to execute in-game commands. It is commonly supported by games such as:

* **Minecraft**
* **Source Engine Games** (e.g. CS:GO, TF2, Garry’s Mod)
* **7 Days To Die**, **Rust**, and others

When you add RCON-based commands to a Tebex package, we will send the command to your game server using an authenticated RCON connection — *without relying on a game-specific plugin*.

> ❌ **Limitations of Legacy RCON**

* No support for player **online/offline status detection**
* No ability to **check inventory space**
* Commands are assumed to succeed if the server responds

***

### How to Set Up Legacy RCON

1. **Navigate to Game Servers**
   * From your [Tebex Control Panel](https://creator.tebex.io/game-servers), go to the **Game Servers** section.
2. **Click “Connect Game Server”**
   * Choose **RCON Server** as your connection type.
   * Click **Continue**.
3. **Enter Server Details**

| **Option**        | **Description**                                       |
| ----------------- | ----------------------------------------------------- |
| **Name**          | A label for this server (e.g., “RCON Server”)         |
| **RCON Host**     | The IP address or hostname of your game server        |
| **RCON Port**     | The port your server uses for RCON (default varies)   |
| **RCON Password** | The password configured on your server's RCON service |

4. **Test the Connection**
   * Click **Test Connection** to verify the credentials.
   * If successful, click **Create** to finalize setup.

You can now include **raw RCON commands** in any Tebex package.

***

### Notes on Command Execution

* Tebex sends RCON commands **in real time** when a purchase is completed.
* If the connection to your server **fails**, or the command **cannot be executed**, we will:
  * Retry the command once **every hour** for up to **24 hours**.

***

### Planning Migration?

If you're currently using legacy RCON, we strongly recommend migrating to the **Tebex RCON Adapter**, which provides:

* Full support for **player targeting**
* Better **error detection and logging**
* Support for complex command chains and safer retries
