Port allocation?

acid_rainacid_rain NS2 NAPT MascotAustin, TX Join Date: 2010-02-16 Member: 70588Forum Moderators, NS2 Playtester, Squad Five Blue, Subnautica Playtester
edited October 2010 in NS2 General Discussion
<div class="IPBDescription">When running more than one source game.</div>When running more than one Source or Orangebox engine game, Natural Selection 2 does not allocate the next available port to create a multiplayer/LAN server which causes the game to stop loading. It does yield a port allocation error, though. Can we possibly get this "port check/assign" feature added? Also, a command with an easy way for server devs to quickly view that allocated port, IP address, unless r_status works? (Didn't know if there was a command like this out already.)

Comments

  • lwflwf Join Date: 2006-11-03 Member: 58311Members, Constellation
    Can't you specify the port number to listen on manually?
  • SgtBarlowSgtBarlow Level Designer Join Date: 2003-11-13 Member: 22749Members, NS2 Developer
    Create a myserver.XML file with contents:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><options>
        <lanGame>false</lanGame>
        <mapName>ns2_tram</mapName>
        <password></password>
        <port>27015</port>
        <serverName>My Server Name</serverName>
        <address></address>
        <playerLimit>12</playerLimit>
    </options><!--c2--></div><!--ec2-->

    You dont really need to fill in the ADDRESS field.


    Next use whatever to launch an instance, You can put the following into a .BAT file and exec it or use Firedeamon or whatever:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->START "NS Server 1" /d "C:\Program Files\Steam\steamapps\common\natural selection 2\" server.exe -file "c:\ns2_config\myserver.xml" -save 0<!--c2--></div><!--ec2-->
Sign In or Register to comment.