Page 1 of 1

SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:53 am
by marrawan
Hello,
Got a weird problem here.

My config
Windows Server 2008 with all latest updates.
SABbzbd v0.7.4RC2 (Problem occurs also with v0.7.3)
1 NIC with several IPs
SABbzbd was installed using Windows Installer EXE downloaded from SF
Using buult-in Windows firewall
Not using IPv6 (although protocol is installed)


I wanted to run SABnzbd on port 80 using an IP dedicated to SABnzbd, I have orher programs running on port 80 but
with different IPs (utorrent WebUI and Apache among others), All other programs run just fine, Each one listens to
port 80 on its dedicated IP with no problems except SABnzbd!.

I have setup a DNS record for SABnzbd IP and used this DNS name as a SABnzbd Host entry value in Config like this

SABnzbd Host : nzb.MyServerDomainName.com
SABnzbd Port :80

When i start SABnzbd with this config it changes its port to 85 instead of 80 and save port 85 to sabnzbd.ini.
I'm 100% sure that nothing is listening on port 80 of SABnzbd dedicated IP yet SABnzbd refuses to run on that
port!, weird!

After a lot of checking I've found that SABnzbd will only run on port 80 if no other programs are listening
on port 80 even if they use different IPs. So i have to manually shutdown all port 80 listening programs,
then start SABnzbd, After that start the other programs again.

I tried the -s switch but norhing worked!, The problem persist even when i used the numeric IP address
as a value to SABnzbd Host option.

Any ideas how to solve this problem are appreciated

Thanks!

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 1:53 am
by shypike
Using a numeric IP is the only way this could ever work.
Go to Config->Special and set the option "no_ipv6" on.
Then restart.

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 11:06 am
by marrawan
I'm afraid it doesn't work even when using numeric IP as I already stated in my original message:
quote myself
The problem persist even when i used the numeric IP address
as a value to SABnzbd Host option.
As fore IPv6 tip, I ticked the no_ipv6 option, then reconfigured SABnzbd to use a numeric IP and port 80,
Restarted it, Same problem, SABnzbd still switching to port 85.

When looking at the no_ipv6 option I noticed this

Image

Even when the option is ticked still it says "off" next to it?
I don't know bu i think this is unexpected, it should say "on" like the keep_awake option. However sabnzbd.ini entry is

Code: Select all

no_ipv6 = 1

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:07 pm
by sander
What is the output of

Netstat -aon | find "80"

... Syntax might be different. See the faq for exact windows syntax.

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:34 pm
by shypike
marrawan wrote:Even when the option is ticked still it says "off" next to it?
I don't know but i think this is unexpected, it should say "on" like the keep_awake option.
Explanation at the top of the page.
The default values are between parentheses.

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:45 pm
by marrawan
Screen shot of all listening programs on all available IP:port

xxx.xxx.193.67 is dedicated to SABnzbd only, No any other programs listen to any port on this IP.
its exclusively for SABnzbd use only. Screen shot shows SABnzbd is listening on port 85.

Image

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:46 pm
by marrawan
shypike wrote:
marrawan wrote:Even when the option is ticked still it says "off" next to it?
I don't know but i think this is unexpected, it should say "on" like the keep_awake option.
Explanation at the top of the page.
The default values are between parentheses.
Thanks for clearing that out.

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 12:48 pm
by shypike
You have something listening on 0.0.0.0:80, this means port 80 on all available interfaces.
This means that SABnzbd cannot use port 80 on any interface.

Re: SABnzbd is refusing to run on port 80 unless...

Posted: September 29th, 2012, 3:21 pm
by marrawan
You're right!
I checked again and found what causes the problem.
Although I've setup utorrent correctly to its own IP it turns out that it still
ignores my settings and bind itself to all IPs.
I'm going to utorrent to check for help there.
And, BTW, SABnzbd running good with the DNS name, No direct numeric IP input is needed.

Thanks for your help really appreciated.