How to detect IP change and send email alert (bash & powershell)

How to detect IP change and send email alert (bash & powershell)
A common thing folks that run any kind of home server, need to do, is detect when they’re IP addressed normally a DHCP assigned address via they’re Internet server provider changes, by doing this is allows them continue to communicate with they’re server. Below are a couple of script one a bash script and the ...
Newark , US
11:33 am
50°F
Broken clouds
High: 52°F
Low: 47°F
Wind: 8 mph