Half-Life Dedicated Server: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
{{toc-right}}


The '''Half-Life Dedicated Server''' or '''HLDS''' is an application to run a dedicated server for [[GoldSrc]] games, without the client component.  
The '''Half-Life Dedicated Server''' or '''HLDS''' is an application to run a dedicated server for [[GoldSrc]] games, without the client component.  
 
This page is aimed at mod developers who want to run hlds on their home computer or servers. Doing this is a must if you are creating a multiplayer mod as the behaviour of dedicated servers differs from that of listenservers (those started from the main menu) in some areas. Crashes that only happen on a DS are entirely possible!
== Connectivity ==
===Connectivity===
No matter which type of server you are using, your computer must be able to receive unsolicited incoming connections. This is exactly what routers and software firewalls exist to prevent, so if you are using either you will have to reconfigure. Refer to the manufacturer instructions for how to do this.
No matter which type of server you are using, your computer must be able to receive unsolicited incoming connections. This is exactly what routers and software firewalls exist to prevent, so if you are using either you will have to reconfigure. Refer to the manufacturer instructions for how to do this.
   
   
The ports hlds officially requires are:
The ports HLDS officially requires are:
# 27015 TCP/UDP (game transmission, pings and RCON)  
# 27015 TCP/UDP (game transmission, pings and RCON)  
# 27020 UDP (HLTV transmission)  
# 27020 UDP (HLTV transmission)  


It has also been spotted opening connections on 27005 to 27030 UDP/TCP, but some of these may be outbound only.
HLDS has also been spotted opening connections on 27005 to 27030 UDP/TCP, but some of these may be outbound only.
 
{{note|A residential internet connection may not have the upload capacity to support large games.}}
{{tip|1=Pinging your own server will fail with some routers and/or ISPs. The most reliable way to test whether your connection is open is either to get a friend to try connecting, or to install the [http://www.microsoft.com/downloads/details.aspx?FamilyID=983b941d-06cb-4658-b7f6-3088333d062f Microsoft Network Monitor] (apply the filter <code>Udp.Port == 27015</code>) and watch for requests coming in from random people around the world. Note that the heartbeats you will see being sent to the two master servers do not mean that the connection is open.}}
 
{{note|A residential internet connections may not have the upload capacity to support large games.}}


===Installation===
== Installation ==
See [[HLDSUpdateTool]].
See [[HLDSUpdateTool]].


===Dedicated Servers Masters server connection Known Issues===
== Known Issues ==
If you have a HLDS Dedicated server and steam install in the same machine, it will not connect properly to the Masters servers due to an incompatibility between steam and HDLS.
*If you have a HLDS and Steam install on the same machine, the server will not connect properly to the Steam Masters Servers due to an incompatibility between Steam and HDLS.
*Solution: uninstall Steam, and force HLDS to install new files from online servers, -verify_all.
:Solution: uninstall Steam, and force HLDS to install new files from online servers, using <code>-verify_all</code>.


== See Also ==
== See Also ==

Revision as of 11:25, 3 September 2012

Stub

This article or section is a stub. You can help by expanding it.

The Half-Life Dedicated Server or HLDS is an application to run a dedicated server for GoldSrc games, without the client component.

Connectivity

No matter which type of server you are using, your computer must be able to receive unsolicited incoming connections. This is exactly what routers and software firewalls exist to prevent, so if you are using either you will have to reconfigure. Refer to the manufacturer instructions for how to do this.

The ports HLDS officially requires are:

  1. 27015 TCP/UDP (game transmission, pings and RCON)
  2. 27020 UDP (HLTV transmission)

HLDS has also been spotted opening connections on 27005 to 27030 UDP/TCP, but some of these may be outbound only.

Tip.pngTip:Pinging your own server will fail with some routers and/or ISPs. The most reliable way to test whether your connection is open is either to get a friend to try connecting, or to install the Microsoft Network Monitor (apply the filter Udp.Port == 27015) and watch for requests coming in from random people around the world. Note that the heartbeats you will see being sent to the two master servers do not mean that the connection is open.
Note.pngNote:A residential internet connections may not have the upload capacity to support large games.

Installation

See HLDSUpdateTool.

Known Issues

  • If you have a HLDS and Steam install on the same machine, the server will not connect properly to the Steam Masters Servers due to an incompatibility between Steam and HDLS.
Solution: uninstall Steam, and force HLDS to install new files from online servers, using -verify_all.

See Also

External Links