Back to Templates
Left 4 Dead 2
Left 4 Dead 2
GameCP OfficialFPS
Verified

Left 4 Dead 2

Dedicated Server Template

Left 4 Dead 2 is a cooperative first-person shooter set during a zombie apocalypse. Up to 4 players fight through campaigns of the infected, or compete in Versus, Scavenge, and Survival modes.

v18
2/25/2026

Left 4 Dead 2 Game Server Hosting

Deploy and manage your own Left 4 Dead 2 dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Left 4 Dead 2 server administration simple and reliable.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Left 4 Dead 2?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
1.0 GB(max 2 GB)
Storage
5 GB

Recommended Players

8
Recommended
Min: 2Max: 32

Performance Tiers

Economy

Small co-op, 4-8 players

RAM1 GB
CPU Shares512
Recommended

Standard

Versus or Scavenge, 8-16 players

RAM1 GB
CPU Shares1024

Pro

Custom modded server, 16-32 players

RAM2 GB
CPU Shares2048

Startup Command

#!/bin/bashBash shell with full features

Default

SRCDS startup for Left 4 Dead 2 cooperative server

Default

Competitive (100 Tick)

High tickrate for competitive Versus matches. Better hit registration and smoother infected gameplay.

Environment Variables

SERVER_NAME

Required

Server Name

Server name displayed in the server browser

Default
(empty)

MAX_PLAYERS

Required

Max Players

Maximum number of concurrent players (4 per team in Versus, up to 32 for custom)

Default
8

STEAM_TOKEN

Game Server Login Token

Create one with App ID `222840` at [Steam GSLT Management](https://steamcommunity.com/dev/managegameservers) to publicly list your server.

Default
(empty)

ALLOW_LOBBY_CONNECT

Lobby Connect Only

If enabled, only players connecting via matchmaking lobby can join. Disable (0) to allow direct connect

Default
0

SERVER_CONTACT

Server Contact

Contact info for server administrator shown in server browser

Default
(empty)

SEARCH_KEY

Search Key

Custom search keyword. Players can filter servers by this tag

Default
(empty)

SRCDS_MAP

Required

Start Map

The map loaded when the server starts

Default
c1m1_hotel

GAME_MODE

Required

Game Mode

Game mode for the server

Default
coop

DIFFICULTY

Required

Difficulty

Difficulty level for campaign and survival modes

Default
Normal

RCON_PASSWORD

Required

RCON Password

Password for remote console (RCON) access

Default
(empty)

SERVER_PASSWORD

Server Password

If set, players will be required to enter this password to join the server

Default
(empty)

AUTO_UPDATE

Auto Update on Start

Automatically update the server via SteamCMD before each start

Default
0

STEAM_USER

Read Only

Steam Username

Steam username for authentication. Leave empty for anonymous login.

Default
(empty)

STEAM_PASS

Read Only

Steam Password

Steam password for authentication. Leave empty for anonymous login.

Default
(empty)

STEAM_AUTH

Read Only

Steam Guard Code

Steam Guard 2FA code. Usually not needed as Steam now uses push approval

Default
(empty)

EXTRA_FLAGS

Read Only

Extra SteamCMD Flags

Additional SteamCMD flags

Default
(empty)

Configuration Files

Server Config

Main server configuration file (server.cfg)

left4dead2/cfg/server.cfgtext
0 fields

Container Configuration

Docker Image

ghcr.io/ptero-eggs/games:source

Technical Profile

Template ID

left-4-dead-2

Author

GameCP Team

Last Updated

February 25, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp

originalAuthor

GameCP Team