make a daemon thread to monitor the change of IP
if any change that thread calls a the main program to notify of the change