Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
VGSOURCES
Get listed

L4D2 serverPATCH 2026.10.27

Left 4 Dead 2 Server Commands: Admin Cheat Sheet

By VGSources Team 8 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Left 4 Dead 2 administration is primarily console- and RCON-based. Run status first, then use the returned userid or Steam ID for moderation; use changelevel for a live map rotation and map only when you accept a session reset. The standard limits are four players in co-op and eight in versus. Raising those limits requires a server-side plugin such as l4dtoolz together with a bot or spawn manager. SourceMod adds an admin menu, logging, immunity rules and protected-cvar controls, but it is an additional installation rather than a vanilla command layer.

What are the essential Left 4 Dead 2 server commands?

For most administrators, the practical sequence is: open the developer console, inspect the server with status, moderate by userid or Steam ID, and use changelevel when rotating maps. RCON lets you perform the same work remotely on a dedicated server.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

As an Amazon Associate I earn from qualifying purchases.

Command Use
status Lists connected players, userids, Steam IDs, ping, map and reservation state.
kick <name> Kicks a player by displayed name.
kickid <userid> [reason] Kicks the userid shown by status.
banid 0 <SteamID> kick Permanently bans a Steam ID and immediately removes that player.
changelevel <map> Changes the map while keeping connected clients in the session when the transition succeeds.
map <map> [mode] Performs a hard map load that can disconnect clients.
mp_gamemode <mode> Selects the active game mode.
z_difficulty <level> Sets Easy, Normal, Hard or Impossible for co-op-oriented modes.

Names can be ambiguous, especially when players use similar aliases. For moderation, the userid or Steam ID from status is the safer identifier.

How do I open the console and connect with RCON?

Enable Allow Developer Console at Options → Keyboard/Mouse, then press the tilde key (~). A local host can run commands there. A dedicated server administrator can use RCON after setting a password in the server configuration.

Popular on Amazon
Sale
Gaoye Blue Light Blocking Glasses | Anti UV Ray, For Computers & Gaming, Square Frame, Eyewear for Men and Women
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
  1. On the server, add rcon_password "your_strong_password" to left4dead2/cfg/server.cfg.
  2. From the client console, set the destination with rcon_address <ip>:27015.
  3. Authenticate with rcon_password <password>.
  4. Test the connection with rcon status. The response should contain the server’s player and map information.

Use a long, unique RCON password and do not paste it into public chat or screenshots. If RCON returns no server response, verify the address, query port and that the server has finished loading its configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I identify, kick and ban players?

Start every moderation action with status. Its output provides the userid needed by kickid and the Steam ID needed by banid, as well as useful context such as ping, current map and whether the server is reserved for a lobby.

Kick a player

  • kick <name> removes a player by name. Quote a name if spaces or punctuation make matching unclear.
  • kickid <userid> [reason] targets the numeric userid from status and can include a reason.

A kick is temporary: the player may reconnect unless you also apply a ban or access restriction.

Ban by Steam ID

  • banid <minutes> <SteamID> creates a Steam-ID ban.
  • banid <minutes> <SteamID> kick bans and immediately kicks the matching player.
  • Use 0 for minutes when you need a permanent ban. Valve Steam Support explicitly defines zero minutes as permanent.
  • removeid <SteamID> removes a Steam-ID ban.

Timed bans are not reliably persistent across a process restart according to the MantaScope command reference. Use writeid for the permanent Steam-ID ban list and writeip for the permanent IP list after making changes you need retained. IP controls are addip <minutes> <IP> and removeip <IP>; an IP ban can affect other users behind the same address, so a Steam-ID ban is usually more precise.

How do I change the map or game mode without disrupting players?

Use changelevel for a live rotation. Use map when you intentionally want a hard reset, because it can disconnect clients and rebuild the session.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Find an installed map

Run maps * to list installed maps, or maps <partial> to filter the list. Copy the map name exactly as the server reports it.

Rotate in place

Run changelevel <map>, for example changelevel c2m1_highway. Connected clients normally remain attached during this transition, although a client with a failed download or incompatible add-on may still be removed.

Hard-load a map

Run map <map> [mode] when you need to rebuild the session or specify a mode at load time. Warn players first: this form can disconnect everyone.

Select the mode correctly

mp_gamemode selects the active mode, including coop, realism, survival, versus, teamversus, scavenge, teamscavenge and installed mutations. sv_gametypes controls which modes are available to matchmaking; setting mp_gamemode alone does not make a mode selectable through matchmaking unless that mode is included in sv_gametypes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

z_difficulty <Easy|Normal|Hard|Impossible> affects co-op, realism and survival. Versus uses Normal difficulty regardless of this setting.

Also popular on Amazon
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men | Office Gifts for Women, iPhone Stand, Gadgets for Men, Office Decor, Gaming Desk Accessories for Samsung Fold 8, Switch, iPad
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

How do lobby, direct-connect and password commands work?

Lobby matchmaking is convenient for discoverability, while direct IP access gives an administrator tighter control over who can enter. The two paths use different settings.

Route a lobby to a particular server

Set sv_search_key <key> to a shared search key. Give the same key to the lobby workflow that should locate the server. This is useful when several servers are available and you need a specific destination.

Allow direct IP connections

Set sv_allow_lobby_connect_only 0. With lobby-only access enabled, a direct connect command can be refused even when the address and port are correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Join a passworded server

For a client joining a passworded server, use setinfo pw <password> ; connect <IP>:27015. The ordinary password command is reported as broken in Left 4 Dead 2 by the 2hours.gg command reference, so the setinfo pw form is the practical workaround.

Notify the Steam master servers

Run heartbeat to manually send a server notification when you need to refresh its presence in the master-server listing.

Also popular on Amazon
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack | IC+Rgb & W Smart RGB Light Bar, USB Powered TV Light Bar, Led Lights for TV PC Room Monitor Backlight Gaming Accessories
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

How do I use sv_cheats and Director commands safely?

sv_cheats 1 enables cheat-flagged commands for the entire server, not just the administrator. Reserve it for private testing or controlled events. A lobby reservation can revert sv_cheats to 0; unreserve the server or use direct-connect-only access before depending on cheat commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Command Requirement and effect
sv_cheats 1 Enables cheat commands server-wide.
z_spawn <hunter|tank|witch|…> Spawns a specified special infected; requires cheats.
director_stop Stops Director spawning; requires cheats.
sb_all_bot_game 1 Allows a bots-only setup or test run; requires cheats.

Because these settings affect every connected client, announce the change and return to normal operation with sv_cheats 0 when testing is complete. If a command suddenly reports that cheats are disabled, check reservation state first rather than repeatedly issuing the command.

What does SourceMod add to vanilla administration?

Vanilla commands work from the console or RCON. SourceMod adds a permission-aware administration layer with menus, logging and immunity handling, plus a way to change protected cvars.

  • !admin or sm opens the SourceMod admin menu in chat or console contexts where it is enabled.
  • sm_kick <target> [reason] performs a logged, immunity-aware kick.
  • sm_ban <target> <minutes> [reason] applies a SourceMod ban.
  • sm_cvar <cvar> <value> sets a protected cvar through SourceMod permissions.

SourceMod and MetaMod require installation and configuration on the dedicated server. They are useful when several moderators need consistent permissions or when you want a menu instead of raw command entry. They do not remove the need to understand vanilla behavior, especially map resets, lobby reservations and ban persistence.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can I host more than four co-op players?

Not with an ordinary vanilla cvar. The current documented caps are four co-op players and eight versus players, and MantaScope states that no supported vanilla cvar raises those limits.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Larger games commonly combine l4dtoolz with a bot or spawn-management plugin. MultiSlots installations expose commands such as:

  • sm_addbots <n> to add a chosen number of bots.
  • !muladdbot <n> as a chat equivalent where configured.
  • l4d_multislots_max_survivors <n> to set the upper survivor count.
  • l4d_multislots_min_survivors <n> to set the minimum survivor count.
  • !join to let eligible players join according to the plugin’s rules.

Plugin behavior is version- and configuration-sensitive. More slots also require suitable bot handling, spawn logic and map support; simply changing a number without those components can leave players unable to join or without a valid survivor spawn. One hosted Share-the-IP tier advertises capacity up to 20 players, but that is a provider-specific offering rather than a vanilla-game limit.

What should I check when a command does not work?

  • The console is unavailable: enable Allow Developer Console under Options → Keyboard/Mouse, then press ~.
  • RCON is silent: confirm rcon_address, the server port, the configured rcon_password and that the server has loaded server.cfg.
  • A userid command targets nobody: run status again. Userids can change after reconnects.
  • A Steam-ID ban has no effect: copy the Steam ID exactly from status, then use the kick suffix if the player is still connected.
  • A timed ban disappears after restart: use a permanent ban with banid 0 when appropriate and write the permanent list with writeid.
  • Players disconnect during a rotation: use changelevel instead of map for routine live changes.
  • Cheats keep turning off: inspect lobby reservation, unreserve the server or switch to direct-connect-only access, then set sv_cheats 1 again.
  • A mode is missing from matchmaking: add it to sv_gametypes; mp_gamemode only selects the active mode.
  • Extra players cannot join: verify that l4dtoolz, the slot plugin and its bot/spawn dependencies are loaded and configured together.

Which administration method should I choose?

Option Best fit Trade-offs
Vanilla console One administrator running a local or dedicated server. No installation, but commands, permissions and logging are manual.
Vanilla RCON Remote operation of a dedicated server. Works without a game-side menu; requires secure password and network access.
SourceMod Multiple moderators, repeatable permissions and menu-driven actions. Requires MetaMod/SourceMod installation and configuration; plugin commands depend on the setup.
Lobby matchmaking Public discoverability and ordinary campaign play. Lobby reservation can affect cheats and server-control assumptions.
Direct IP Private events, testing and tighter access control. Players need the address and the server must allow direct connections.

Frequently Asked Questions

Can I see who is connected before I change the map?

Yes. Run status immediately before the change and note the player list, map and reservation state. This also gives you a record of userids and Steam IDs if a reconnect or moderation issue follows.

Do I need to restart the server after editing server.cfg?

A configuration change is only useful after the server has loaded it. If the running instance does not reflect a new RCON or access setting, reload the configuration through your normal server-management method or restart the process during a maintenance window.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why does a versus server ignore my z_difficulty setting?

The command affects co-op, realism and survival. Versus remains Normal by design, so changing z_difficulty is not a way to alter versus difficulty.

What is the safest way to test a new plugin?

Use a private, direct-connect server with a backup of the configuration and plugin files. Test map changes, bot filling, admin permissions and a clean restart separately before allowing a public lobby to reserve the server.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

L4D2 serverLeft 4 Dead 2PC gamingRCONserver commandsSourceMod

Leave a reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.