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?
More specifically, I'm looking to detect:
- When the device connects to a new Wifi network and it gets an IP from the DHCP
- When the device for some reason needs to renew an IP