# Bad rcon

**URL:** <https://cod4x.ovh/t/bad-rcon/2979>\
**Category:** CoD4x | Server Support\
**Tags:** server\
**Created:** [October 28, 2023, 1:28pm UTC](https://cod4x.ovh/t/bad-rcon/2979 "2023-10-28T13:28:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prottor](https://cod4x.ovh/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@prottor](https://cod4x.ovh/u/prottor)\
**Post date:** [October 28, 2023, 1:28pm UTC](https://cod4x.ovh/t/bad-rcon/2979/1 "2023-10-28T13:28:53Z")

</div>

Hello all,

I have a problem with a lan server. It runs and you can play on it, but I can not use the rcon commands.  
/rcon login “Password” does not seem to work.  
If I use another rcon command after that, I always see in the console of the server only the indication that there was a bad rcon from my ip.

What can be the reason for this and what can I try to solve this problem?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![AlexC](https://cod4x.ovh/user_avatar/cod4x.ovh/alexc/32/4_2.png) [@AlexC](https://cod4x.ovh/u/AlexC)\
**Post date:** [October 28, 2023, 4:43pm UTC](https://cod4x.ovh/t/bad-rcon/2979/2 "2023-10-28T16:43:16Z")

</div>

set your rcon password via the startup command: `+rcon_password "blablabla"`

---

<div class="post-metadata">

**Author:** ![prottor](https://cod4x.ovh/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@prottor](https://cod4x.ovh/u/prottor)\
**Post date:** [October 28, 2023, 5:29pm UTC](https://cod4x.ovh/t/bad-rcon/2979/3 "2023-10-28T17:29:50Z")

</div>

> [@AlexC](#):
>
> the startup command: `+rcon_passwor`

That’s what I did. But it doesn’t work.  
In the server config it says something about the password having to be at least 8 characters long. But that doesn’t seem to be the reason either.

---

<div class="post-metadata">

**Author:** ![MAD\_DAD](https://cod4x.ovh/letter_avatar_proxy/v4/letter/m/b2d939/32.png) [@MAD\_DAD](https://cod4x.ovh/u/MAD_DAD)\
**Post date:** [October 28, 2023, 9:21pm UTC](https://cod4x.ovh/t/bad-rcon/2979/4 "2023-10-28T21:21:24Z")

</div>

+set rcon\_password “password”

and make sure your password is 8 characters or more

---

<div class="post-metadata">

**Author:** ![\_Ranaco](https://cod4x.ovh/letter_avatar_proxy/v4/letter/_/3ab097/32.png) [@\_Ranaco](https://cod4x.ovh/u/_Ranaco)\
**Post date:** [October 29, 2023, 12:33pm UTC](https://cod4x.ovh/t/bad-rcon/2979/5 "2023-10-29T12:33:57Z")

</div>

try changing your server cfg. use 8 characters for the rcon password using +set rcon\_password “password” in the .sh file.

// map rotation (put this in your server.cfg)  
set sv\_maprotationcurrent “” // leave empty  
set sv\_mapRotation “gametype sd map mp\_crash gametype sd map mp\_crossfire gametype sd map mp\_backlot gametype sd map mp\_strike gametype sd map mp\_citystreets”

---

<div class="post-metadata">

**Author:** ![Sh3llK0de](https://cod4x.ovh/user_avatar/cod4x.ovh/sh3llk0de/32/161_2.png) [@Sh3llK0de](https://cod4x.ovh/u/Sh3llK0de)\
**Post date:** [October 30, 2023, 2:49am UTC](https://cod4x.ovh/t/bad-rcon/2979/6 "2023-10-30T02:49:08Z")

</div>

This can happen if the config is overwriting the command line arg. Normally you set rcon\_password in startup command, but if you exec the config after setting it and the config has it entered to something else, it will change to what the config dictates. Delete any config entries for rcon\_password.

---

<div class="post-metadata">

**Author:** ![prottor](https://cod4x.ovh/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@prottor](https://cod4x.ovh/u/prottor)\
**Post date:** [November 5, 2023, 9:24pm UTC](https://cod4x.ovh/t/bad-rcon/2979/7 "2023-11-05T21:24:42Z")

</div>

Thanks Sh3llK0de,  
i deleted the rcon\_password in the server config and deleted it also in the command line. I startet the server, shut it down and writed the +set Rcon\_password again in the comman line. Now it works fine.

Thanks to all!
