Trying to make a private dedicated server.
I set up everything and the servers are running perfectly but I cant put a password on the server.
In your server configuration file "dedicated_zm" or "dedicated" there is a line that says:
// g_password ""
That line remove the "//" and make it look like this
Save the file and restart your server.
Be sure to change "your_password" to something else.
When connecting, on the main menu you need to open the console and type
and then press enter and then connect to the server as normal.
If you connect with IP in console, you can type connect 22.214.171.124:port;password your_password
Replace 126.96.36.199 with your external ip, port with your port, and your_password with the password you have chosen.
sv_offline 1 and you don't need a password as it doesn't register itself to the server list anymore.
@Mathy so is it like this connect 188.8.131.52:4976:password
@BadBane not exactly, let's assume your external ip is 184.108.40.206, your port is 4976 (default) and your password is strongpassword33
connect 220.127.116.11;password strongpassword33
if your port is something else however (or if you're running game + server on the same pc in which case you need to change the server's port to 4977):
connect 18.104.22.168:4977;password strongpassword33
: is used to separate ip and port
; is used to separate commands