Lino Website

Drafts

Installing ipcheck.py

Notes on how to get your Debian server serve on your ADSL connection with dynamic IP address. We suppose that your Debian server is serving HTTP on the internal LAN and that you have already your account at www.dyndns.org.

Now we must install something on our computer to tell dyndns about our dynamic ip address. It must run automatically each time when our IP address changes.

We are going to use ipcheck.py, an open-source tool written in Python. More on ipcheck.py project homepage.

python ipcheck.py -v -l -r checkip.dyndns.org username password 
hostname
ipcheck/0.215
ipcheck.py: Fri Jul 30 19:27:05 2004
ipcheck.py: opt_router set to checkip.dyndns.org
ipcheck.py: opt_username = lsaffre
ipcheck.py: opt_password = ********
ipcheck.py: opt_hostnames = lsaffre.dyndns.org
ipcheck.py: PWD = /home/luc/ipcheck
ipcheck.py: web based ip detection for localip
ipcheck.py: Trying URL http://checkip.dyndns.org
ipcheck.py: webip.out file created
ipcheck.py: webip detected = 213.219.91.17
ipcheck.py: Good, filehosts and hostnames are the same.
ipcheck.py: Good, no ipcheck.err file.
ipcheck.py: Good, no ipcheck.wait file.
ipcheck.py: Checking hosts in file vs command line.
ipcheck.py: The database matches local address.  No hosts update.

Now we must create a cron job who will run every 5 minutes. See www.michianageeks.net/2004/cronjob.xhtml

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:23:33