How To Fix RCON Not Connecting in CS2 [Pterodactyl, WISP, Docker]

November 10, 2023
How To Fix RCON Not Connecting in CS2

Since Counter Strike 2 has released, I've been contacted by a number of game server owners who had been having trouble connecting to RCON with Counter Strike 2. I honestly couldn't really figure it out until I noticed I also had the same issue and required it for our servers at Game Host Bros.

ps. RCON is only accessible from external apps, NOT from the game client itself. It's broken in CS2.
pps. You shouldn't use RCON as it's insecure, and you should use your panels API if possible

No matter what I tried, it would always say Could not connect to the server. Check host/IP and port!

What I discovered from my testing is this is actually to do with docker, especially if you're starting the server with the +ip flag. It turns out that there are 2 issues at play when you can't connect via RCON in CS2.

Let me show you an example on how to enable RCON.

Here is the original startup command: ./game/ -dedicated +ip -port 27015 -maxplayers 7 +map de_mirage +game_type 0 +game_mode 0

And here is the modified startup command: ./game/ -dedicated +ip -usercon -port 27015 -maxplayers 7 +map de_mirage +game_type 0 +game_mode 0

Let me explain what the above changes do.

+ip - What we are doing is allowing CS2 to listen on any ipv4 address. This is important because internally on most peoples setups, they will be using the internal docker IP.

-usercon - This startup command in is used to enable the use of RCON (Remote Console) commands.

I've also included all the RCON commands for CS2 so you can quickly get everything configured. You can view the full Counter Strike 2 commands list here.

rconIssue an rcon command.
rcon_addressAddress of remote server if sending unconnected rcon commands (format x.x.x.x:p)
rcon_connected_clients_allowAllow clients to use rcon commands on server.
rcon_passwordremote console password.
vconsole_rcon_server_detailswhen non-empty allows for easy vconsole connection to the dedicated server.

There you go, you should be all setup and connected now. If this helped you, come and join our Discord and let me know. I would love to hear form you.


When we started playing online games with our friends, we knew we needed a good game server. But finding one that delivered what gaming communities need was harder than we thought. That's why we decided to start our own game server network.
In this article
© 2024 GhostCap®

All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

We may earn commission from companies if you purchase via our affiliate link. This helps us run GhostCap as a free resource for you. Please note that we are not asked to promote these products and do so on our own accord. As an Amazon Associate we may earn from qualifying purchases.

All specifications are subject to change without notice.