Ports

sinhowangsinhowang Join Date: 2003-02-09 Member: 13299Members
<div class="IPBDescription">How do I change the port?</div> I need to knopw how to change the port from the default 27015 to something else like 27017

Comments

  • EpochEpoch Join Date: 2002-10-10 Member: 1474Members
    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.
  • BorisBoris Join Date: 2002-12-30 Member: 11636Members
    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-->
  • mathyoumathyou Join Date: 2002-11-28 Member: 10131Members
    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.
  • BonelessBoneless Join Date: 2002-09-03 Member: 1270Members
    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.
Sign In or Register to comment.