Home

Left 4 Dead 2

Config Generator

Fill in the fields below to generate a ready-to-use server.cfg for your Left 4 Dead 2 dedicated server. For the full setup walkthrough -- getting the server files, required ports and starting it up -- see the Left 4 Dead 2 setup guide. Not sure your hardware is up to it? Check compatibility first.

Executed automatically on startup with +exec server.cfg.

Source: Valve's own official Left 4 Dead 2 console commands and variables reference.

server.cfg preview

hostname "My L4D2 Server"
sv_password ""
rcon_password ""
sv_lan 0

Server running but nobody can join?

A wrong or missing setting in this file isn't the only reason players can't connect -- see the connection troubleshooting guide for port forwarding, firewall and CGNAT issues.