LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ddclient connection on debian (https://www.linuxquestions.org/questions/linux-networking-3/ddclient-connection-on-debian-228112/)

jphillip 09-08-2004 07:47 AM

ddclient connection on debian
 
Hello,
I have ddclient on a slackware box that connects up to my linksys router checks the ip and if the ip address has changed on the linksys router, the ddclient app changes the ip address out at zone edit.
Works great but my slack box is a testing box and needs a overhaul.

So, I copied the ddclient files over to my production debian box tried to start it up over there and I get this message?

WARNING: cannot connect to 192.168.1.1:80 socket: IO::Socket::INET: connect: Connection refused

Could anyone out there in Linux land help out moderate newbie. I am kinda lost.
I have restarted my router, restarted my debian production box, shut down ddclient on the testing slax box. check the password in the conf file. Still no luck

Thanks for any idea's
JP

scissors 09-08-2004 11:21 AM

I would say that your webserver on the router did not start back up. I would try to restart the router. I would also try to telnet to the router at port 80 from the production box to test if you can make the connection. Then try it from the dev box if you cannot. This will let you know on what box the problem lies.

telnet 192.168.1.1 80

you should get a reply something like this:

Connected to 192.168.1.1
Escape character is '^]'.

That means you can make the connection. You could also try pointing your web browser at it. http://192.168.1.1

jphillip 09-08-2004 01:24 PM

I can connect via http to the router. I can also connect via telnet 192.168.1.1 80 from my slackware box.
When I try to telnet via ssh from inside the debian box I get a connection refused. I also upgraded firm ware
on the linksys router to 1.45.10 APR 15 2004, which was successfull with the upgrade, but did not help with telnet issues from debian box.

scissors 09-08-2004 02:24 PM

Does your router only allow http connections from one box? I would check the configuration from the router end.

jphillip 09-08-2004 08:49 PM

Not sure how to check this. It is a linksys 4 channel wireless router. I will poke around and see what I can find, but I sure don't remember sitting it up.

r0b0 09-09-2004 09:21 AM

Maybe I'm confused but is ddclient really supposed to "connect to your router and check the ip"?
I thought that ddclient only checks your IP address and connects to dyndns.org (or whatever) and updates your DNS info.
IP address is provided to your computer from the router by dhcp. I don't think ddclient gets some IP addresses from routers using http.

jphillip 09-09-2004 11:47 AM

Umm,

Well ddclient ask for Linksys information using
FW=192.168.1.1:80
FW-PASSWORD=password

I believe it does some type of screen scrap from the status.htm page to get the current ip address.
Then I believe it checks a file on the server and compares the two. If different, logs into a names server and changes the IP

All I know is that on my Slackware box it works like a charm.
As soon as I stop the Daemon on the slack box and start it on the Debian box, I get a connection refused, which is just mind blowing at this stage.

I also have a XP windows box and downloaded a different product to see if, I was just a knob, it took all of 5 minutes to download install and up and running. I shut down my DSL Modem, forced a new IP and bam it worked (from the windows box. that is).

At this stage, I am more or less challenged to see why it does not work on debian box. Either I am missing a setting ( I dought) or there is something in the linksys router that is foo barring me (that what I am thinking).

Anyway, I will fiqure it out and I will let everyone know the solution when I do.

JP


All times are GMT -5. The time now is 09:55 AM.