I am looking for a way to, without polling, to get a notification when the Windows machine IP address change. I need to react to this change and perform some action in my application.
Anyone has done anything of the sort?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
NotifyAddrChange()to handle IPv4 address change. The linked page has a succinct demo.NotifyIpInterfaceChange()handles both IPv4 and IPv6 (separately or simultaneously — see the doc), but requires Vista or later.