Set -hostport (to same as your -port) and -clientport along with -port on the command line and i'm sure it uses the ports which you want to.
I cannot tell why it behaves like it does on you though. -ics 27.6.2010 17:08, Michael K. Gosvig kirjoitti: > The problem is, in the start command line the server is set to a specific > port, example 27030. But in the screen it writes. " Network: IP > 92.246.12.12, mode MP, dedicated Yes, ports 27030 SV / 27031 CL" > > The server side is set to 27030, but then the client side takes 27031, and > there the problem starts, as there is another server on 27031. And when it > trys to start it's port I taken by the previous one on the client side. > > Why is it that the client side on some severs take the next port but on > others take "-1" in screen ? > > Michael > > -----Oprindelig meddelelse----- > Fra: hlds_linux-boun...@list.valvesoftware.com > [mailto:hlds_linux-boun...@list.valvesoftware.com] På vegne af Marc.B > Sendt: 27. juni 2010 14:45 > Til: Half-Life dedicated Linux server mailing list > Emne: Re: [hlds_linux] New Source server takes a random port > > Michael, > > As far as I know, it don't pick up a random port. It try port + 1 until it > find a free port. > There are other games that work the same way, so I think you should make a > fix on your side since you are not supposed to start a server on a port that > is already used. > > Checking if that the port is available using netstat before you launch a > server is the best way, and you can also make a sleep between the server > kill and the server start. > > We are hosting about 5.000 and have no issue with this new port management. > We do also reboot most servers in the morning. > > Cheers, > > Marc. > > On Sun, Jun 27, 2010 at 2:04 PM, Eric Riemers<riem...@binkey.nl> wrote: > > >> You can always do a netstat -an|grep LISTEN|grep<portnumber> then "if >> found, wait 10 seconds" and try again before starting. >> Might not be the nicest solution , but could work for you. >> >> Eric >> >> -----Original Message----- >> From: hlds_linux-boun...@list.valvesoftware.com >> [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Michael K. >> Gosvig >> Sent: zondag 27 juni 2010 2:50 >> To: 'Half-Life dedicated Linux server mailing list' >> Subject: Re: [hlds_linux] New Source server takes a random port >> >> No luck with "-hostport" instead of "-port" >> >> -----Oprindelig meddelelse----- >> Fra: hlds_linux-boun...@list.valvesoftware.com >> [mailto:hlds_linux-boun...@list.valvesoftware.com] På vegne af Cc2iscooL >> Sendt: 27. juni 2010 02:38 >> Til: Half-Life dedicated Linux server mailing list >> Emne: Re: [hlds_linux] New Source server takes a random port >> >> Yes but the ports shouldn't be in use if they're restarting. Maybe try >> adding some delays to your reboot scripts so the daemon has a chance to >> shut >> down and a check to see if the process is closed before starting up a new >> server. >> >> On Sat, Jun 26, 2010 at 7:27 PM, Michael K. Gosvig >> <m...@michaelgosvig.dk>wrote: >> >> >>> The problem is, that we are an official Gameserver provider, so when >>> our servers restart in the morning, som servers are faster than >>> others, it depends on how many mods the customer has installed. >>> >>> That why we loved the way the old engine worked, if it could not get >>> the port, written in the command line, it would not start. But the new >>> Source Engine, just takes a random port to start on. It's seams like >>> the server sometimes ignores the "-port xxxxx" in the command line. >>> >>> Michael >>> >>> -----Oprindelig meddelelse----- >>> Fra: hlds_linux-boun...@list.valvesoftware.com >>> [mailto:hlds_linux-boun...@list.valvesoftware.com] På vegne af Eric >>> Riemers >>> Sendt: 27. juni 2010 01:51 >>> Til: 'Half-Life dedicated Linux server mailing list' >>> Emne: Re: [hlds_linux] New Source server takes a random port >>> >>> >>> If it cant get it's own, I would look at that problem first. >>> >>> If you did a restart and it changed port after that, try waiting some >>> time before starting up again, perhaps the process is keeping the port >>> in use for a little while (rare conditions, but could occur) >>> >>> Eric >>> -----Original Message----- >>> From: hlds_linux-boun...@list.valvesoftware.com >>> [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of >>> m...@michaelgosvig.dk >>> Sent: zondag 27 juni 2010 1:28 >>> To: hlds_linux@list.valvesoftware.com >>> Subject: [hlds_linux] New Source server takes a random port >>> >>> Hi. >>> >>> After the new update to source, we have been having som problems whit >>> our servers. >>> >>> The new engine takes a random port, if i can't get it's own. Thats a >>> major problem for us, as we host a lot af serveres, an when a server >>> take a port that it should not have, the another server, can't start on >>> >> the right one. >> >>> In our start command line we uses the "-port xxxxx" but it's still >>> able to take other ports. Is there any way to lock the new source >>> server to only one port, as the old server engine? >>> >>> Best Regards >>> Michael >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >>> >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >>> >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >>> >>> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >> >> > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux