Cannot connect,

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Cannot connect,

Post by fluefiske »

Hello,

Ik starting the new beta with " python2.5 /home/sabnzbd/SABnzbd.py -d -b0 -s 0.0.0.0:5555 & " this works just fine, however it does not result in an open port from the outside, in my own network it just works perfect but not reachable from the outside please help ???

By the way i'am running a freecom datatank gateway 2 terrabyte.

Thnx,

André
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot connect,

Post by shypike »

How about telling your router to redirect port 5555 to the PC running SABnzbd?

A router's job is to protect you from the Internet, unless you tell it not to.

I'd be careful with exposing the SABnzbd Web-ui to the outside world.
Personally, I access it only through an SSL-tunnel.
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

That is what i tried before, but sins my datatank is my router and the app. is running on 0.0.0.0 i tried to forward port 5555 to 0.0.0.0 but that doesn't work. What i also tried is the dynamic dns to configure like this fluefiske.no-ip.biz:5555 but that works neigther.

I tried to configure the http settings to port 5555 however the webgui from freecom which runs on port 80 quits.

Thnx in front,

André
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot connect,

Post by shypike »

0.0.0.0 is not a real IP address!
It's interpreted by SABnzbd as listening on localhost AND the real IP address of the device.
The problem is likely that your Datatank has two IP addresses (one for te outside world and one for your LAN).

You will have to help SABnzbd to use the right port, by giving it the external IP address of the tank.
This does mean that any access is through the external IP and not through the local IP or localhost.

The alternative is to use the local IP address, but then you'll need to redirect port 5555 to the local IP address.

Do not use 0.0.0.0 in this case, but the actual IP address.
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

Hello,

I'am confused, i think i have only one lan ip adres and that is 192.168.1.1, my freecom is configured as an dhcp client so my wan ip is my external adres see print screen.

With netstat i get the following reply: tcp      0.0.0.0:5555            0.0.0.0:*              LISTEN


Thnx,

André
Last edited by fluefiske on September 15th, 2008, 10:15 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot connect,

Post by shypike »

0.0.0.0 is still not a real address, at least not something that can be used by other computers.
Look, if you have multiple computers, you MUST have some router using NAT.
You have to tell the router for which computer an incoming request on port 5555 is meant.
If your datatank has only one port, it cannot be the router.
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

Hello Shypike,

I'am aware of that, but sins my datatank is my router/ switch and sabnzbd is running on that machine, I cannot forward the standard gateway 192.168.1.1 to port 5555 and i think i have to do something with a dynamic dns server, but I don't have a lot of knowledge of networks I'm still suffering the same problem. I really would like to have it work because it is the application I use the most.

I send you a few screen prints which maybe can be helpful, the one with the http server is the one which works, it opens the port but as soon as i startup sabnzbd the webgui from the nas quits. SABnzbd works then very good but that's not what i want. Could it be that i need to change something about the iptable settings ???

Thnx again,

André
Last edited by fluefiske on September 16th, 2008, 2:36 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot connect,

Post by shypike »

I don't know enough of your device to answer these questions.
Looks to me like the tank-gui and sabnzbd are fighting over access?
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

Oke, thnx anyway and i hope somone does now a little bit more of my device will react.

Thnx,

André
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

Thanks for all the reactions, i was finaly able to get it done, i will explain how i did it.

I had to add a iptable rule in my S99SABnzbd,

if [ -n "`pidof python`" ]; then
   /bin/killall python 2>/dev/null
    fi

export PATH=/opt/sbin:/opt/bin:${PATH}

/opt/bin/python2.5 /home/sabnzbd/SABnzbd.py -d -b0 -s 0.0.0.0:5555 &

iptables -I INPUT -p tcp --dport 5555 -j ACCEPT


And now it works perfectly,

André van Stijn  :D
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Cannot connect,

Post by shypike »

fluefiske wrote:    /bin/killall python 2>/dev/null
Cannot you think of a nicer way to terminate SABnzbd?
This is a sure way of messing up it's internal administration.
Preferably use:

Code: Select all

curl http://host:port/sabnzbd/shutdown
or if that's not  possible

Code: Select all

kill -s QUIT
User avatar
fluefiske
Newbie
Newbie
Posts: 25
Joined: March 9th, 2008, 3:09 am

Re: Cannot connect,

Post by fluefiske »

That's what i would like to see, that you are thinking with me, what i can do to improve my code sins i'm not a linux wiz kid.

Thank you and i will change it,

André
Post Reply