"Bad password" error when connecting to a password protected server
I'm trying to connect to a password-protected CS:GO server by using the Steam protocol using steam://connect/ip:port/password.
When CS:GO is already running, the client connects without any problems. But when CS:GO is not running, it starts and then gives me the "Bad password" error.
Is this a known bug? I haven't found anything so far.
Best Answer
I have the same problem and I think I found why:
How to reproduce:
- Issue a steam url: Steam://connect/ip/password.
- Wait for CS to start and then connect.
- Close down CS.
- On your server: Change the password
- Issue a steam url: Steam://connect/ip/new_password.
- "SteamUrlHandler" now starts CS and then issues the connect command.
- You get BadPassword response from server.
Question Why?
I used a protocol analysator and detected that it uses the old password during the 2nd connect. So the "SteamUrlHandler" has older passwords cached and sends that to the game.
Workaround?
Still looking after a good workaround, but issuing the steam-url again after a while seems to work.
Pictures about ""Bad password" error when connecting to a password protected server"



Logon failure unknown username or bad password | (Windows Workgroup Fix)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Mikhail Nilov, Mikhail Nilov, Mikhail Nilov, Pixabay
