Skip to main content

You are here

Monitor your public IP

My simple yet effective home public IP monitoring script.

#!/bin/bash

current_ip="YOURIPHERE"
ip=`curl -s ifconfig.me`

if [ "$current_ip" != "$ip" ] && [ $ip != "" ]
then
	echo "New IP detected: $ip" | mail -s "Public IP has been changed" [email protected]
fi
Premium Drupal Themes by Adaptivethemes