Skip to content
/SLASHPLAY

How to password protect an L4D2 server

Turn on Password protection on the General tab of the server page, then click Restart. The copied connect line includes it, like connect address; password yourpassword.

sv_password

The join password. Empty by default, so anyone with the address can join.

sv_password "<password>"

Examples

sv_password "letmein"

Lock the server.

sv_password ""

Open it again.

Arguments

passwordRequired
The join password. Empty removes it.

What it does

Players with the password join with connect <address>; password <password> in their game console.

Good to know

  • SLASHPLAY manages this one: set it with Password protection on the server page's General tab, then click Restart. Left 4 Dead 2 only takes a new password after a restart.
  • If server.cfg sets it, it overrides the dashboard and the copied connect line stops working.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.