In your command-line, use '+port xxxxx' without the quotes. Replace xxxxx with the port number. You can also create a file called autoexec.cfg in your mod directory and write 'post xxxxx' in that file.
In my shortcut i have this as the command: "C:\Sierra\Counter-Strike\hlds.exe -game ns +map ns_eclipse -maxplayers 10 -port 27016"
I'm not sure what the difference is with the +/- infront of the command... Just thought I'd show you this incase the + sign doesn't work, although I'm sure it does
**** This way you can join the server from the server machine with no problems...Good for testing purposes only. Don't do this if you are running a server with people on it. Play from a second machine.
- Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
IIRC, there is some difference between the + and - variables. I thought one was for general HL vars and other for mod-specific vars. I'm not sure such a methodology makes sense looking at my commandline though.
I use a + on Windows; it works. Perhaps a - would too though.
NO! NO! NO! Options with "-" only can be run in the command line... Options with "+" cand also be run in server console. So "-port xxxxx" only works in command line "+port XXXX" has no effect because the port must be set at startup time.
Comments
"C:\Sierra\Counter-Strike\hlds.exe -game ns +map ns_eclipse -maxplayers 10 -port 27016"
I'm not sure what the difference is with the +/- infront of the command... Just thought I'd show you this incase the + sign doesn't work, although I'm sure it does
**** This way you can join the server from the server machine with no problems...Good for testing purposes only. Don't do this if you are running a server with people on it. Play from a second machine.
- Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
I use a + on Windows; it works. Perhaps a - would too though.