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.

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.

- 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.
- Download the 3 mods you need for co-op from their official pages: MetaMod: Source, SourceMod and SourceCoop.
- Extract all 3 archives into the server folder
/Black Mesa Dedicated Server/bms/(the server folder, not the game folder). - 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

- 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.
- To rename the server, find server.cfg in
/Black Mesa Dedicated Server/bms/cfg/. - 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 changingmp_timelimit 900to0. - To change the player limit, edit the .bat file from step 5. The limit is set by
+maxplayers(10 by default). - In Black Mesa’s properties in Steam, add
-secureto the Launch Options. This lets the game connect to any multiplayer server.

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
- 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.

- Open Multiplayer in the game and find your server by the name you set in server.cfg.

- 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.
- 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.
- Once the ports are open, your server is reachable from the internet, and friends can join through the server browser or by direct IP.
- 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?
A dedicated server is a server you install on your own computer or on a cloud server (if you have the means). It’s made for one specific game and runs its multiplayer mode. Unlike a server you host from inside the game client, a dedicated server runs on its own, often 24/7.
You can leave it running even when nobody is playing. You can also add your own rules and mods and adjust all sorts of settings.
Can you finish the whole game in co-op?
Yes. You may run into minor visual bugs, but you can play the whole game with friends from the start all the way to the meeting with the G-Man.
Which files does the mod need?
SourceCoop, MetaMod: Source and SourceMod. Extract them into the server folder (dedicated server).
Where do I get Black Mesa Dedicated Server?
If you bought Black Mesa on Steam, the server is in the Tools section of your library. For pirated copies you’ll have to find the server on third-party sites and match its version to the game client.
Do my friends need to download the mods or set up a server?
No. Anyone who connects to your server can start playing right away.
How many people can play co-op?
The server supports up to 32 players. Mods can raise that limit, but I doubt you have that many friends to play with.
How do I change the server name?
Edit the hostname line in server.cfg. The config file is in Black Mesa Dedicated Server/bms/cfg/. Latin and Cyrillic characters are supported.
I get the error ‘Unexpected authentication protocol 1675212!’ when connecting
This can happen if you installed the mods in the game folder instead of the server folder. The error can also be related to connecting over LAN. Reinstall the game and the server, then go through all the steps of the guide again.
How do I change the difficulty?
Once connected to the server, enter these console commands: sourcecoop_difficulty_auto -1, then sourcecoop_difficulty x (replace x with any number from 0 up). You can also change the difficulty in the server console.
How do I change my player name?
If you bought Black Mesa, your name is tied to your Steam account. Pirated versions with emulators also let you change the 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
My advice: wait for a big Steam sale (summer or winter) and buy the game cheap. It saves you a lot of trouble with connecting and playing co-op. You can track the price on SteamDB.
You can also buy a discounted key on a third-party site and activate it in Steam.
How do I save progress?
The server doesn’t remember the map where you stopped. It loads the map set in the .bat file. Note where you stopped and vote for that map ID next time. Or update the map ID in the .bat file before each launch.
How do I turn on friendly fire?
Use the in-game command mp_friendlyfire 1
How do I change the map on the server?
Use sm_map MapID or changelevel MapID in the game. The full list of map IDs (mapname) is on Black Mesa SourceRuns.
You can also change the map by vote: type /changemap in chat.
To continue from a specific map the next time you start the server, open the .bat file, replace the map ID after +map and save. The server console shows the current map.
Can I change my player skin?
Unfortunately, no. It’s probably possible with commands or mods, but other players won’t see your skin.
Where do I change the player limit?
It’s set in the .bat file you created. Find +maxplayers x and enter the number of players you want to allow.
How do I enable cheats?
Enter sv_cheats 1 in the server console.
How do I remove the yellow triangle above players’ heads?
Open the .bat file in the server folder and find +mp_teamplay 1. Change 1 to 0 to leave the team, and the yellow icon will no longer appear.
I get the GameUI_ServerInsecure error when connecting
Open the game’s properties in Steam and add -secure to the Launch Options.
I get ‘Connection failed after 4 retries’ when connecting
- You may have entered the wrong IP address for your server.
- Check your IP in the server console, your router settings or your virtual network.
If the server can’t be found the usual way, try setting up a virtual network with Radmin VPN or Hamachi.
How do I make the server public, open the ports or connect over the internet?
This applies if your server only shows up over the local network (LAN).
You need to open ports in your Wi-Fi router settings. There are plenty of detailed port forwarding guides online for every router brand.
By default the server and client use TCP and UDP ports 27015-27030. Open these ports before your server can go public.
Steam says the game is already running. How do I launch the game while the server is up?
Launch the game through Steam first, then start the co-op server. Don’t launch Black Mesa directly from the game folder (outside Steam).
I can’t see my server in the list or can’t connect to it after opening the ports
You most likely have a VPN or virtual network turned on. Turn those programs off and the server will become reachable.
Can I play without opening ports, using Hamachi or Radmin VPN?
Yes, you can connect to the server through a virtual network. Make sure you use the Hamachi or Radmin virtual IP when you create the server and when you connect. Your friends need to be in the same virtual network.
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!
- How to Play Black Mesa Co-op with Friends: Full Server Guide
- How to Price a Painting for Etsy (and Other Marketplaces)
- Beginner’s Guide to Front-End Development
- 10 полезных программ для Linux, которые стоит установить на каждый ПК
- Mass Recall – Лучшая адаптация Brood War на движке StarCraft 2: установка и обзор мода
