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
g_password "your_password"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
password thepasswordyouchose
and then press enter and then connect to the server as normal. -
If you connect with IP in console, you can type connect 1.1.1.1:port;password your_password
Replace 1.1.1.1 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 1.1.1.1:4976:password
like that? -
BadBane not exactly, let's assume your external ip is 94.32.54.21, your port is 4976 (default) and your password is strongpassword33
connect 94.32.54.21;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 94.32.54.21:4977;password strongpassword33
: is used to separate ip and port
; is used to separate commands