IP address monitoring code