myip-upload v1.3 [23 May 2017] by Dominic

Description

This is a command-line program for Linux or Windows (with Cygwin - which must have inetutils) to obtain your external ip address and then compare it with the latest entry on a remote file; if it has changed, append the changed ip to the remote file by ftp.

This is so a program running on a remote machine can get this ip address from the remote file and hence reach a machine on the lan side of the router. It can be considered a workaround for the absence of a free working dynamicdns service. Obviously, for appending to the remote file myip-upload.sh must have write access to that file.

Used without -a option it just returns the external ip and compares it but does not upload it if it has changed.

You need to create a conffile (see below) which can be specified using -c command line option or defaults to myip-upload.conf in the same directory as myip-upload.sh. This conffile contains the username and password for the ftp login with the address of the file on the ftp server to which the ip info is to be appended.

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run from the command line (CLI), are freely available and can be obtained by clicking on the links. Dependencies are shown and while in most cases written for a conventional Linux server, they should run even on a Raspberry Pi, and many can run under Windows using Cygwin. Email me if you have problems or questions, or if you think I could help with a programming requirement.

Debian/Ubuntu kernel and LVM Utilities

kernel-remove - GNU/Linux script to list the installed GNU/Linux kernels in a Debian-based distro (e.g. Ubuntu), and can be used to remove an unwanted kernel and related packages, updating grub appropriately. [ GNU/Linux-Debian/Ubuntu: 2010-15
]

lvm-usage - GNU/Linux script to show available disk space and how it is used; run as cron job to warn if usage is above a set percentage. Provides additional information if LVM is in use. [ GNU/Linux-Debian/Ubuntu: 2012-18
]

lvm-delete-snapshot - GNU/Linux script to remove LVM snapshot that has been left over by another process. [ GNU/Linux-Debian/Ubuntu: 2012-19
]

tiny-device-monitor - GNU/Linux program to test webpages (including password-protected) or machines to check they are live; use as a cron job for your own websites, for hardware presenting a webpage, or for any machines with a presence on your local LAN or on the internet. [ GNU/Linux: 2009-19
]

dutree - GNU/Linux program to show a tree-style list of files and directories at the specified location and greater than the specified size (default 1GB). [ GNU/Linux: 2012-15
]

disk-wiper - GNU/Linux script to wipe a disk drive comprehensively and also check it for bad blocks. For use on a surplus drive (not SSD, not GPT) before passing to a third party. [ GNU/Linux: 2011-16
]