Milton,

For information, the +hostport was working fine until the last 2 or 3
updates. The use of -port is now required to make it work properly.

Cheers,

Marc.

On Tue, Jun 8, 2010 at 9:51 PM, Milton Ngan <[email protected]>wrote:

> You can use +hostport (or -port) to specify a port. But if that port is in
> use, the engine will search for the next available port. There isn't a way
> to turn that feature off unfortunately. So you need to allocate your ports
> explicitly if you want to avoid this behavior.
>
> M.
>
> -----Original Message-----
> From: [email protected] [mailto:
> [email protected]] On Behalf Of kama
> Sent: Tuesday, June 08, 2010 12:34 PM
> To: Half-Life dedicated Linux server mailing list
> Subject: Re: [hlds_linux] port changes
>
>
> Hi!
>
> The question was if it was something available in the server itself. like
> a cvar, startup option or something like that. So it does not pick next
> available port number.
>
> /Bjorn
>
> On Tue, 8 Jun 2010, Joonas Lehtolahti wrote:
>
> > One could make a bash script to check the port availability and only
> start
> > the server if it is free. Something like this:
> >
> >
> > #!/bin/bash
> >
> > PORT=27015
> >
> > if [[ $(netstat -nul | grep $PORT) ]]
> > then
> >      echo "Port $PORT already in use, not starting SRCDS"
> > else
> >      ./srcds_run $*
> > fi
> >
> >
> > Now instead of using srcds_run directly, you would call this script. Of
> > course you can customize it to your heart's contents as you see fit.
> >
> >
> > On Tue, 08 Jun 2010 21:40:37 +0300, clad iron <[email protected]>
> wrote:
> >
> > > i'm not following 100% but if i do understand right.
> > > Your wanting to see if a port is already in use ?
> > >
> > > 1 easy way if you already have another server installed. you could just
> > > start it up on the port in question and watch the console output. it
> will
> > > tell you if it's already in use, but at that point it WILL pick another
> > > port
> > > and continue to load up.
> > >
> > >
> > > On Mon, Jun 7, 2010 at 7:42 AM, kama <[email protected]> wrote:
> > >
> > >>
> > >> Hi!
> > >>
> > >> Is there an option for srcds based games not to change the port number
> > >> when the port is used on start?
> > >>
> > >> I just want it to tell me that the port is allready in use and quit.
> > >>
> > >> /Bjorn
> > >>
> > >> _______________________________________________
> > >> 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

Reply via email to