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
2:33 pm
55°F
Broken clouds
High: 59°F
Low: 51°F
Wind: 13 mph