Please refer the below script monitor, To keep track the changes in your IP address.
This script will help you. This script monitors and if the IP address of the endpoint got changed, it will generate an alert along with the new IP address details.Please refer.
Please refer the wiki guide for how to use the custom monitoring scripts:
Tested OS: This script has tested on Windows(7), Windows(8,8.1), Windows(10) Machines