> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leaderos.net/llms.txt
> Use this file to discover all available pages before exploring further.

# RCON

You can send commands to your game console using RCON. This allows your website to communicate directly with your game server to execute commands, deliver items, and manage players automatically.

<Warning>
  The ports you use with RCON must be open on both your web hosting and game server VPS/Dedicated Server.
</Warning>

## Minecraft

<Steps>
  <Step title="Configure your server.properties file.">
    ```properties server.properties theme={null}
    ...
    ..
    .
    enable-rcon=true
    rcon.password=ENTER_STRONG_PASSWORD_HERE
    rcon.port=ENTER_RCON_PORT_HERE
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. Press the 'Test Connection' button to check if it works." />
</Steps>

## FiveM

<Steps>
  <Step title="Configure your server.cfg file.">
    Add or edit the following line in your `server.cfg`:

    ```cfg server.cfg theme={null}
    ...
    rcon_password "ENTER_STRONG_PASSWORD_HERE"
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. The RCON port is usually the same as your game port (default 30120). Press the 'Test Connection' button to check if it works." />
</Steps>

## Rust

<Steps>
  <Step title="Configure your server startup script (e.g., start.bat or start.sh).">
    Add the following parameters to your startup command line:

    ```bash start.bat theme={null}
    ...
    +rcon.port ENTER_RCON_PORT_HERE
    +rcon.password "ENTER_STRONG_PASSWORD_HERE"
    +rcon.web true
    ```
  </Step>

  <Step title="Save the startup file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. Press the 'Test Connection' button to check if it works." />
</Steps>

## ARK: Survival Evolved

<Steps>
  <Step title="Configure your GameUserSettings.ini file.">
    Navigate to `ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini` (or `LinuxServer` if you are on Linux) and add/edit these lines under the `[ServerSettings]` section:

    ```ini GameUserSettings.ini theme={null}
    [ServerSettings]
    ...
    RCONEnabled=True
    RCONPort=ENTER_RCON_PORT_HERE
    ServerAdminPassword=ENTER_STRONG_PASSWORD_HERE
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. Press the 'Test Connection' button to check if it works." />
</Steps>

## CS:GO / CS2

<Steps>
  <Step title="Configure your server.cfg file.">
    Add or edit the following line in your `csgo/cfg/server.cfg` (or `game/csgo/cfg/server.cfg` for CS2):

    ```cfg server.cfg theme={null}
    ...
    rcon_password "ENTER_STRONG_PASSWORD_HERE"
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. The RCON port is usually the same as your game port (default 27015). Press the 'Test Connection' button to check if it works." />
</Steps>

## Unturned

<Info>
  Unlike other games, Unturned requires a modding framework like RocketMod or OpenMod to support RCON connections.
</Info>

<Steps>
  <Step title="Configure your RCON configuration file.">
    If you are using RocketMod, navigate to `Servers/YourServer/Rocket/Rocket.config.xml` and update the RCON section:

    ```xml Rocket.config.xml theme={null}
    ...
    <RCON Enabled="true" Port="PORT" Password="ENTER_STRONG_PASSWORD_HERE" />
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. Press the 'Test Connection' button to check if it works." />
</Steps>

## Garry's Mod

<Steps>
  <Step title="Configure your server.cfg file.">
    Add or edit the following line in your `garrysmod/cfg/server.cfg`:

    ```cfg server.cfg theme={null}
    ...
    rcon_password "ENTER_STRONG_PASSWORD_HERE"
    ```
  </Step>

  <Step title="Save the file and restart your server." />

  <Step title="Enter these details to your website's Add/Edit Server section. The RCON port is usually the same as your game port (default 27015). Press the 'Test Connection' button to check if it works." />
</Steps>
