Dynamic IP using noip.com
- Ubuntu/Linux machine running at home with dynamic IP.
- Ubuntu/Linux machine is configured in DMZ or has port 80 forwarded to it.
- 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:$firstname.lastname@example.org/nic/update?hostname=$hostname&myip=$myip