Dynamic IP using noip.com

Dynamic IP using noip.com

Assumptions

  1. Ubuntu/Linux machine running at home with dynamic IP.
  2. Ubuntu/Linux machine is configured in DMZ or has port 80 forwarded to it.
  3. Registerd a free account at noip.com.

Bash script below to automatically get your external IP and and update noip.com. After that put this script to run as a cron job.

myip=$(curl checkip.amazonaws.com)
username='oofnivek'
password='password'
hostname='oofnivek.ddns.me'
curl http://$username:$password@dynupdate.no-ip.com/nic/update?hostname=$hostname&myip=$myip

ubuntu-update-dynamic-ip