Hlds_l
CoREJayFive
Join Date: 2003-02-12 Member: 13479Members, Constellation
<div class="IPBDescription">Why is it using 2 ports?</div> I have 2 separate linux machines running NS servers with AdminMod. It has come to my attention that they are each utilizing 2 network ports.
Box 1 (RedHat Linux) runs on 27015. When I run a netstat I get:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->udp 0 0 *:27015 *:*
udp 0 0 *:27016 *:*
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Box 2 (Debian Linux) runs on 27016. When I run a netstat I get:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->udp 0 0 *:27016 *:*
udp 0 0 *:27017 *:*
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
I noticed this phenomenon when I tried to run a second server on box 1. The server failed because it said 27016 was in use.
It's not a big deal, but I was wondering if anyone knew why hlds_l does this.
Box 1 (RedHat Linux) runs on 27015. When I run a netstat I get:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->udp 0 0 *:27015 *:*
udp 0 0 *:27016 *:*
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Box 2 (Debian Linux) runs on 27016. When I run a netstat I get:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->udp 0 0 *:27016 *:*
udp 0 0 *:27017 *:*
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
I noticed this phenomenon when I tried to run a second server on box 1. The server failed because it said 27016 was in use.
It's not a big deal, but I was wondering if anyone knew why hlds_l does this.
Comments
/hlds_run -game ns +maxplayers 12 +map ns_bast -port 27015 -pingboost 2 -heapsize 128000; sleep 60; done &
would be like your command path?
If you miss a bit out like the port section it may assign ports?(honestly dont know much about linux, but ill try help you <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->)
YES! Makes sense now. Thanks for clearing that up.