title: How can I detect when the device gets a new IP?
body: <p>For multicast purposes, I'm looking for a simple way to detect when the IP of an Android device changes. How can I go about doing so?</p>
  
  <p>More specifically, I'm looking to detect:</p>
  
  <ul>
  <li>When the device connects to a new Wifi network and it gets an IP from the DHCP</li>
  <li>When the device for some reason needs to renew an IP</li>
  </ul>