neuro.mancer 17 Oct, 2023 @ 4:57am
CS2 how to set a password on a self-hosted CS2 server, that clients can log in to
When I set the password via sv_password, the client can't connect and reports
Bad password rejected by server.
The client never prompts for a password.

This is how the server is reporting it:
Accepting Steam Net connection #1882390672 UDP steamid:xxxxxxx@192.168.8.107:58199 Sending S2C_CHALLENGE [0 auth 3] to 192.168.8.107:58199 Receiving C2S_CONNECT [protocol 13962 0 auth 3] from 192.168.8.107:58199 CNetworkGameServerBase::ConnectClient( name='happy.gamer', remote='192.168.8.107:58199' ) 192.168.8.107:58199: password failed. Sending RejectConnection to 192.168.8.107:58199: 134: NETWORK_DISCONNECT_REJECT_BADPASSWORD [#1882390672 UDP steamid:xxxxxxx@192.168.8.107:58199] closed by peer (1000): CloseSocket Steam Net connection #1882390672 UDP steamid:xxxxxxx@192.168.8.107:58199 closed by peer, reason 1000: CloseSocket CloseSteamNetConnection handle #1882390672 (userdata -1)


I can succefully connect if I use the console to connect from the client:
connect 192.168.8.194:27015; password ServerPassword

Any hints on what I'm doing wrong?

Thanks :steamhappy: