#! /bin/sh IP=$(wget -O - http://icanhazip.com/ -o /dev/null) So many good things available out there that I am yet to find. This one courtesy of: https://github.com/AntonioCS/no-ip.com-bash-updater.git a