How to Play Black Mesa Co-op with Friends: Full Server Guide

  • Post published:
  • Post last modified:
  • Post category:Eng / Guides
  • Reading time:8 mins read
Black Mesa logo

A lot of fans, me included, played the original Half-Life and remember how much fun the multiplayer deathmatches were. The story campaign is a different matter: the Half-Life games were built for single-player only. I have a retro review of the game here on the site if you want the background.

For co-op there is Sven Co-op, a free mod that lets you play through the whole 1998 Half-Life with friends. The downside is that Sven Co-op runs on the same old engine, and it doesn’t look impressive anymore.

Co-op player in an HEV suit with a crowbar next to a scientist in a Black Mesa lab
Two-player co-op in Black Mesa

Black Mesa keeps the spirit of the original while overhauling the graphics and the content (especially the Xen chapters). It has no co-op either. That’s where mods come in: they can turn a regular deathmatch server into a full co-op campaign.

In this guide I’ll walk you through setting up your own Black Mesa co-op server step by step, and cover fixes for the problems people run into most often with setup and connecting.

Setting Up the Server

💡These steps are for the Steam version of the game. If you have a pirated copy, some steps may be different. Versions of the game, the mods and Steam can also affect the setup.

Black Mesa Dedicated Server in the Tools section of the Steam library
  1. Install Black Mesa Dedicated Server from Steam. You’ll find it in the Tools section of your library. You need to own Black Mesa on the same account. The game is cheap, and it’s worth it.
  2. Download the 3 mods you need for co-op from their official pages: MetaMod: Source, SourceMod and SourceCoop.
  3. Extract all 3 archives into the server folder /Black Mesa Dedicated Server/bms/ (the server folder, not the game folder).
  4. In the server’s root folder /Black Mesa Dedicated Server/, create a text file and paste in the script below.
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe /high -console -game bms -secure -port 27016 +clientport 27017 +maxplayers 10 +mp_teamplay 1 +exec server.cfg +map bm_c0a0a
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Saving start.bat in the Black Mesa Dedicated Server folder next to the MetaMod, SourceMod and SourceCoop archives
Save the file as .bat to launch the server
  1. Save the text file with any name and the .bat extension. You’ll use this file to start the co-op server from now on.
  2. To rename the server, find server.cfg in /Black Mesa Dedicated Server/bms/cfg/.
  3. In server.cfg, change the line hostname "Name". This is the server name players see before they connect (Latin and Cyrillic characters both work). I also recommend removing the time limit by changing mp_timelimit 900 to 0.
  4. To change the player limit, edit the .bat file from step 5. The limit is set by +maxplayers (10 by default).
  5. In Black Mesa’s properties in Steam, add -secure to the Launch Options. This lets the game connect to any multiplayer server.
Black Mesa properties in Steam with -secure entered in Launch Options
-secure lets you connect to servers if you get connection errors

That’s it for setup. Next, start the server and connect to it from the game. If something went wrong at any step, check the FAQ below.

There’s also a server setup guide on Steam: How to Play Coop [SourceCoop Mod].

Starting the Server and Connecting

  1. Once everything is set up, it’s time to play. Launch Black Mesa first, then start the server with the .bat file from step 5. If you start the server before the game, Steam will think the game is already running.
Black Mesa Dedicated Server console after startup, showing the public IP
The running server console shows your public and local IP address
  1. Open Multiplayer in the game and find your server by the name you set in server.cfg.
Firzj Coop server listed under both LAN and Internet in the Black Mesa server browser
A running server visible over LAN and the internet
  1. Connect to your server over LAN to check that everything works. If your server doesn’t show up under Internet, follow the extra steps below.
  2. For other players to join, you need to open ports on your Wi-Fi router. Open the router’s admin page in a browser (usually 192.168.0.1). Find a section called something like Port Forwarding or Virtual Servers and open ports 27015-27030 for both TCP and UDP. The exact steps depend on the router manufacturer.
  3. Once the ports are open, your server is reachable from the internet, and friends can join through the server browser or by direct IP.
  4. You can find your public IP in the server console, in the line Public IP is: x.x.x.x, or on a site like myIP.com.

Now you can play through Black Mesa in co-op (up to 32 players). To switch the server to another map and continue the story, type /changemap in chat and vote for the map you need.

Video Guide

FAQ and Troubleshooting

What is a dedicated server?

Can you finish the whole game in co-op?

Which files does the mod need?

Where do I get Black Mesa Dedicated Server?

Do my friends need to download the mods or set up a server?

How many people can play co-op?

How do I change the server name?

I get the error ‘Unexpected authentication protocol 1675212!’ when connecting

How do I change the difficulty?

How do I change my player name?

I’m trying to run a pirated copy (with a Steam emulator or similar) and nothing works. I’ve spent hours or days on it

How do I save progress?

How do I turn on friendly fire?

How do I change the map on the server?

Can I change my player skin?

Where do I change the player limit?

How do I enable cheats?

How do I remove the yellow triangle above players’ heads?

I get the GameUI_ServerInsecure error when connecting

I get ‘Connection failed after 4 retries’ when connecting

How do I make the server public, open the ports or connect over the internet?

Steam says the game is already running. How do I launch the game while the server is up?

I can’t see my server in the list or can’t connect to it after opening the ports

Can I play without opening ports, using Hamachi or Radmin VPN?

This guide is also available in Russian.

Still have questions? Ask me through the contact form. Did the guide help? You can support the project with the button below. Thanks!