Spunky said:
That's because you need ports 27000-27030 TCP/UDP enabled!
And you're inferring that from... what? Even knowing nothing about Winsock, you could atleast search for the error on Google and see that you have no idea what you're talking about.
Drew - HLDS is trying to bind to port 27015, and can't. For some reason, something already
has, so a new connection can't be established. Are you trying to run the dedicated server and client on the same computer? Something somewhere on your system has bound to port 27015, so HLDS can't. Either find out what's using the port, or run HLDS on a different port with the
+port x flag.
Kaination - the port can be
any one
single port. I could tell HLDS, like I said in my last port, on port 50000 if I wanted to. The
default port is 27015. It's not uncommon to see ports near 27015 (such as 27014 or 27016) being used, because the computer is running multiple HLDS processes (hence, multiple servers) and each HLDS needs a unique port to listen on.
And for clarification, all of these ports are UDP. Many games will use UDP for the actual game traffic because it requires no overhead, and is thus much faster and more suited for realtime applications.
The spread of misinformation in this section is absolutely frightening...