"C:\Sierra\Half-Life\hlds.exe -game cstrike -port 27015 –noipx +log on +maxplayers 20 +map de_chateau".
-game cstrike Tells HLDS which mod it is going to use
-port 27015 Tells the server which port to use. 27016 will enable you to play on the same machine(not recommended).
+maxplayers 20 Sets the maximum number of people that can join your server. It can only be set at startup.
+map de_chateau The first map you want to play. This should be the last in the command line. The next map will be the first in the mapcycle.txt.
-noipx This corrects the message “Could not get IPX socket name, IPX disabled Reason: WSAENOTSOCK”.
+log on Starts logging for your server. This should not be in the server.cfg
You can place everything but the “-game cstrike” in the autoexec.cfg if you would like. This can help if you want to make frequent changes to your startup variables. Please take a look at all the startup cvars you can have.
When you finally run your server, the last basic thing to look for are the words "WON Auth Server" to tell you that you have obtained authorization from WON and you are ready to roll. If per chance you instead see "Outdated server protocol", then this is a message from the WON gods that either you have an outdated version of the server software. If you still don’t get that message you possibly a firewall or proxy is hindering your attempts to reach the WON servers. But basically, it's just not working properly. Here is a list of all the ports needed to run a server properly:
Incoming UDP to local destination 27015.
Outgoing UDP to remote destination 27010, 27012.
Outgoing TCP to remote destination 5273.
Outgoing TCP to remote destination 7002.
As long as you are getting the first off the two messages, then your server is properly sending out heartbeats to the WON master server, and you will be listed in the Half-Life launcher. Well, you have just taken your first baby step.

