Now

server.cfg:

sv_password secretpassword
without quotes kind of works.

If I connect using "connect ip:port" I get an error from CSGO saying "Bad password".

If I do "connect ip:port; password secretpassword" I get an "Failed to join session. Please try again" and in my server log I get "RejectConnection: 130.226.70.179:48721 - #Valve_Reject_Bad_Password".

If I do "password secretpassword; connect ip:port" it connects to the server.

I'm just baffled as to why sv_password does not use quotes around it's argument (the password itself). rcon_password uses quotes etc.

I cannot make this work if I define sv_password in the gamemode_[mode]_server.cfg as Bruno Garcia garcia.bruno0 at gmail.com suggests.

Best regards
Jonas


On 10-04-2013 16:09, Jonas Camillus Jeppesen wrote:
Hi all and thanks for an very good and helpful mailing list.

I'm trying to set a password for my server (at time of launch) but I simply cannot get it working. I've tried

sv_password "secretpassword"
in my csgo/cfg/server.cfg and in csgo/cfg/autoexec.cfg (only in one of them at a time and in both of them simultaneously) but to no avail. If I connect to my server from the console using "connect ip:port" I'm not asked for a password, I get not error, I am just connected to my server as if it wasn't password protected at all.

Any suggestions as to what might be wrong?

I've found people complaining about sv_password not working when there are already players on the server, but that's not my problem. I just want to set it at server launch.

Best regards
Jonas C. Jeppesen




_______________________________________________
Csgo_servers mailing list
[email protected]
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers

Reply via email to