Half-Life Dedicated Server: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(added configuration / starting server section)
Line 1: Line 1:
{{stub}}
{{toc-right}}
{{toc-right}}


Line 20: Line 19:
See [[HLDSUpdateTool]].
See [[HLDSUpdateTool]].


== Known Issues ==
== Configuring and running the server ==
*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.
Navigate to the folder you just installed your server in. There should be a bunch of files and folders, including a directory with the name of the game you have just installed, e.g. <code>cstrike</code> for Counter-Strike 1.6. The configuration files are located in the <code><game>/cfg/</code> e.g. <code>cstrike/cfg/</code> directory.
:Solution: uninstall Steam, and force HLDS to install new files from online servers, using <code>-verify_all</code>.
 
Edit the main configuration file: <code><game>/cfg/server.cfg</code>. Change the <code>hostname</code> line (this is the name people will see in the server browser) to your liking.
 
Open a terminal where you have installed the server and start the server:
./hlds_run -game <game> -autoupdate +maxplayers X +map <map>
 
For example:
./hlds_run -game cstrike -autoupdate +maxplayers 8 +map de_dust


== See Also ==
== See Also ==
* [[HLDSUpdateTool]]
* [[Source Dedicated Server]]
* [[Source Dedicated Server]]
* [[Server Plugins]]
* [[Server Plugins]]
Line 31: Line 38:


== External Links ==
== External Links ==
* [http://store.steampowered.com/about/ What is Steam (bottom right of page)]
* [http://en.wikipedia.org/wiki/Half-Life_Dedicated_Server Half-Life Dedicated Server article on Wikipedia]
* [http://en.wikipedia.org/wiki/Half-Life_Dedicated_Server Half-Life Dedicated Server article on Wikipedia]
* [http://forums.steampowered.com/forums/forumdisplay.php?f=509 Official Dedicated Server Discussion Forums]
* [http://forums.steampowered.com/forums/forumdisplay.php?f=509 Official Dedicated Server Discussion Forums]

Revision as of 10:44, 4 March 2013

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.

Configuring and running the server

Navigate to the folder you just installed your server in. There should be a bunch of files and folders, including a directory with the name of the game you have just installed, e.g. cstrike for Counter-Strike 1.6. The configuration files are located in the <game>/cfg/ e.g. cstrike/cfg/ directory.

Edit the main configuration file: <game>/cfg/server.cfg. Change the hostname line (this is the name people will see in the server browser) to your liking.

Open a terminal where you have installed the server and start the server:

./hlds_run -game <game> -autoupdate +maxplayers X +map <map>

For example:

./hlds_run -game cstrike -autoupdate +maxplayers 8 +map de_dust

See Also

External Links