The ports that need to be forwarded for Black Mesa Server are listed here:
Black Mesa Server - PC
- TCP: 27015
- UDP: 27015, 27020
Forward Ports for Black Mesa Server

When you use Black Mesa Server you might need to forward some ports in your router. A port forward allows incoming connection requests from the internet to go straight to Black Mesa Server.
Routers generally do not allow incoming connection requests from the internet. A port forward can overcome this limitation.
Before Forwarding a Port
Make sure that you know these things before forwarding a port:
- Your router's IP address.
- Your computer's internal IP address.
- The TCP and UDP ports that need to be forwarded.
Find Your Router's IP Address
The easiest way to locate your router's IP address is to run our free Router Detector utility. It is part of our Network Utilities suite of tools and is free for you to use it.
If you do not want to run the software, you can follow our Find Your Router IP Address guide.
Setting Up a Port Forward for Black Mesa Server
You can use our Network Utilities software to automatically forward ports for you. Our Network Utilities software allows you to add port forwards and also remove them when you no longer need them to maximize your network security.
Alternatively you can do it by hand. The normal process for forwarding a port is:
- Start by logging in to your router.
- Look for the port forwarding section in your router.
- Type the IP address of your computer into the correct box in your router.
- Put the TCP and UDP ports for Black Mesa Server in the corresponding boxes in your router.
Usually you have to reboot your router in order to save the changes.
You can choose your router from our list to see exactly how to forward ports for Black Mesa Server:
List of Routers - Customized for Black Mesa Server
Those are the steps to take in order to forward ports in your router for Black Mesa Server.