Page 1 of 1
Sab randomly changing local listening port!
Posted: March 9th, 2011, 7:51 am
by CoNFuS3D
Hi, sab seems to change it's listening port every few days, sometimes every day, any idea how to stop this from happening, as it is really annoying?
thanks

Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 8:28 am
by sander
My first guess is that you start up SABnzbd several times: as the second SAB instance find the normal port in use (by ... the first instance of SAB), it hunts another port. And so on.
So: if you turn off your computer, start it again, and then start SABnzbd, on which port is it?
Later on, how do you access SABnzbd? Do you click on a program/button, or do you access it via a browser bookmark?
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 8:37 am
by CoNFuS3D
hi,
thanks for the reply!
I have a bookmark for accessing sab, but with it changing ports all the time, it hardly ever works. it usually goes between: 8080, 8085, 8090 but it has been others in the past. I did a ps x, and there is only one instance of sab running at the moment...
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 9:08 am
by sander
And what does "ps ax" show? Or better: "ps ax | grep -i sabnzbd"?
Are you on Mac or Linux (or ...)?
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 10:07 am
by shypike
How do you start SABnzbd?
It supports a command line parameter which allow forcing the address.
At least as long as the port isn't actually occupied; because if so, it will start searching again.
It will at least force a fixed starting point.
--server host:port
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 7:03 pm
by CoNFuS3D
4515 ? Sl 16:56 /usr/bin/python -OO /usr/bin/sabnzbdplus /tmp/Tron Linux.nzb
13278 pts/1 S+ 0:00 grep --color=auto -i sabnzbd
I am on linux, when I start it, I don't normally start it, only when I download a NZB, and it starts automatically
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 7:09 pm
by shypike
It looks like /usr/bin/sabnzbdplus is a script.
Look inside and see if you can find where it starts SABnzbd.py
and add the server parameter.
Re: Sab randomly changing local listening port!
Posted: March 9th, 2011, 7:31 pm
by CoNFuS3D
I'm not really familiar with python scripts, what do I add, and where do I add it?
Re: Sab randomly changing local listening port!
Posted: March 10th, 2011, 1:55 am
by rascalli
Best is to have it running as Deamon & auto on boot.
You can us the etc/init.d/sabnzbdplus script for this
If you download an .nzb , all you do is add it with the webinterface to sabnzbd+
Or download it to a watch folder & it will start.
Re: Sab randomly changing local listening port!
Posted: March 10th, 2011, 2:12 am
by jcfp
CoNFuS3D wrote: 4515 ? Sl 16:56 /usr/bin/python -OO /usr/bin/sabnzbdplus /tmp/Tron Linux.nzb
[...]
I don't normally start it, only when I download a NZB, and it starts automatically
Is that why there's an nzb file in that command line? Did you configure your system to start a new instance of sab for every nzb, by making it some kind of default application for nzb files? If so, drop that, and set things up as rascalli suggested.
Re: Sab randomly changing local listening port!
Posted: July 19th, 2011, 10:13 am
by rollhax
This response is a little late, but I figure it may help somebody else searching for it (I just found it myself).
This had been happening to me over and over again everytime I would restart the sabnzbdplus daemon or reboot the PC. I had set a custom port in the sabnzbd web config, but it was still defaulting to 8080 often enough to be annoying (especially when not on my LAN). I was digging around in the init script and noticed the SETTINGS=/etc/default/sabnzbdplus line. Go to that directory to edit that file and change the default port, it will then by default start with the port you have defined.