Is there a way to receive notification in Java when IP address changes?
For example when the machine receives a new address from a dhcp server. I would like to avoid polling as the machine is already under heavy load. From what I found so far it seems impossible.
Something that works in pure java would be best but a linux specific way would be fine too.
Edit: I should have mentioned that the IP address is that of the local machine, not some remote server. Ie. I would like to receive notification when the IP address of the machine where the java program is running is changed.