> ## Documentation Index
> Fetch the complete documentation index at: https://support.zonely.gen.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Garry’s Mod RCON

> A step by step setup guide to send commands to your Garry’s Mod server over RCON from your site.

## 1) Prerequisites

* A working **Garry’s Mod Dedicated Server (srcds)**.
* **RCON** enabled with a defined password.

## 2) Configure RCON on the GMod server

1. Open or create the following file:\
   `garrysmod/cfg/server.cfg`
2. Add or update these minimum RCON settings:

```cfg theme={null}
rcon_password "YOUR_PASSWORD"
// Optional (if supported):
// sv_rcon_banpenalty 30
// sv_rcon_maxfailures 5
```

* `rcon_password`: Must match the **RCON Password** you enter in the panel.
* RCON usually connects through the **game port** (most often **27015**). If you started the server with a different `-port`, enter that port in the panel.

3. Restart the server or change the map to apply settings.
4. On the firewall or cloud firewall, allow the **server port** (for example **27015**) for the **panel IP**.

<Tip>
  The RCON port usually matches the game port. Use the same `-port` value from your startup parameters in the panel.
</Tip>

## 3) Create a server record in the panel

1. Go to the **Servers** page.
2. Click **Add Server**.
3. Fill in the fields:
   * **Plugin**: `RCON`
   * **Server IP Address**: The server IP or an accessible domain
   * **RCON Port**: The server port (for example **27015**)
   * **RCON Password**: From `server.cfg` then `rcon_password`
4. Click **Check Plugin Connection**.
5. If successful, click **Publish** to save.

<Warning>
  The **RCON Password** in the panel must exactly match the `rcon_password` in `server.cfg`.
</Warning>

## 4) Troubleshooting

* **Connection failed or timed out**
  * Are IP and port correct? Did you allow the port in OS and provider firewalls?
  * Can the server be reached (ping, tracert)?
* **Unauthorized or wrong password**
  * Do `rcon_password` and the panel **RCON Password** match?
  * After many failed attempts, a temporary block may occur. Wait briefly, then try again.
* **Settings not applying**
  * Is `server.cfg` in the correct directory?
  * Did you restart or change the map after editing?

## 5) Security tips

* Use a strong, long, and **unique** `rcon_password`.
* Open the port only to the **panel IP**.
* To protect against brute force attacks (if supported), increase `sv_rcon_maxfailures` and `sv_rcon_banpenalty` values.
* Change the RCON password regularly and monitor logs.
* Serve your panel over **HTTPS**.

## 6) FAQ

**What is the default port?**\
Usually **27015**. If you started the server with a different `-port`, use that port.

**Can I use a domain instead of an IP?**\
Yes. You can use a domain the panel can reach.

**Can I add more than one GMod server?**\
Yes. Create a separate record for each server and enter the correct IP, port, and password.

**How should I write commands?**\
Do not use a leading slash in the panel. For example `changelevel gm_construct`, `sv_password ""`, `kickid 12345`.
