Here's a mini guide for hosting a
listen server (might be more convenient than using SteamCMD to host a dedicated one).
- Assuming the server's firewalls and anti-virus are allowing "hl.exe".
- Assuming the server's opened the TCP and UDP ports on 27015 (NAT settings).
Server:
1) Open Half-Life (or a mod) with the console.
2) "maxplayers X" where X is the number of players.
3) "sv_lan X" where X is a boolean variable (0 = Internet, 1 = LAN).
4) "ip XXX.XXX.XXX.XXX" where "XXX.XXX.XXX.XXX" is your
EXTERNAL IP address for Internet games,
INTERNAL for LAN games. The external one can be obtained by websites such as "What Is My IP Address".
5) "map X" where X is the map you wish to play.
Clients:
1) Open Half-Life (or a mod) with the console.
2) Only if the server is password protected (aka "sv_password" has been set): "password X" where X is the password.
3) "connect XXX.XXX.XXX.XXX" where "XXX.XXX.XXX.XXX" is the server's
EXTERNAL IP address for Internet or
INTERNAL for LAN.
If the server uses another port than 27015, the server will have to type "port X" before the "map" command to update the port. Clients will have to use "connect XXX.XXX.XXX.XXX:YYYY" where YYYY is the newly defined server's port.