I am looking for a way, without polling, to receive a notification when a Windows IP address changes. I need to respond to this change and perform some actions in my application.
Has anyone done something like this?
You can use NotifyAddrChange() to handle an IPv4 address change. There is a short demo on the linked page. NotifyIpInterfaceChange() handles both IPv4 and IPv6 (separately or simultaneously - see the document), but requires Vista or later.
NotifyAddrChange()
NotifyIpInterfaceChange()
If you are using .NET, you can implement the NetworkChange :: NetworkAddressChanged Event . I believe that it provides exactly what you want.
Source: https://habr.com/ru/post/914833/More articles:Can I specify a host when entering phpMyAdmin? - phpplay framework 2.0 - internationalization - how to translate a message - internationalizationFFTW vs OpenCV cvDFT - opencvAccess to translation of i18n messages from Scala templates (Play! Internationalization) - internationalizationhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/914832/void-pointers-to-struct-pointers-in-c&usg=ALkJrhhnlGiQdznFXmlkP8NvxWQBe8XCgQNaming primary keys "id" vs "something_id" in SQL - sqlA simple RMI callback example - javaresult of std.algorithm.map - typesImportError: there is no module named test_data, but test_data.py is in the same directory as test.py in PyCharm using virtualenv - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/914838/java-convert-named-html-entities-to-numbered-xml-entities&usg=ALkJrhg-P8JBuIastbtWm3wDTnjjuESDJQAll Articles