locked
No IPV4 notification generated by NotifyIpInterfaceChange() when change IP manually? RRS feed

  • Question

  • I used NotifyIpInterfaceChange() of the IPHelpter API to set a notification for the interface parameter change event. However, when I changed the IP configuration of the interface manually, no IPV4 notification was generated. Why?

    My network interface was set to be configured by DHCP at first. The IPV4 address given by the router was 192.168.1.101, subnet mask 255.255.255.0 and the default gateway was 192.168.1.1. Then I changed the configuration to manual set and filled the IP input box with IP address 192.168.1.201, subnet mask 255.255.255.0, gateway 192.168.1.1, confirm, and close the configure dialog. Strangely, no IPV4 notification was generated!! Can anyone tell me why? And how to solve this problem? Thanks a lot!

    Sunday, May 22, 2011 3:46 PM

Answers

  • I think I find the answer. See following link:

    http://social.msdn.microsoft.com/Forums/fi-FI/vclanguage/thread/f7ee703f-1f18-423b-8dd3-b662198f204a

    But the function NotifyAddrChange() does not support IPV6~~~

    Does anyone know which API can monitor IPV6 changes? Thanks!

    • Marked as answer by WWWFdisk Wednesday, May 25, 2011 12:53 PM
    Monday, May 23, 2011 2:10 PM
  • NotifyUnicastIpAddressChange() notifies IPV6 IP address change. But not for subnet mask, gateway and DNS.
    • Marked as answer by WWWFdisk Wednesday, May 25, 2011 12:53 PM
    Wednesday, May 25, 2011 12:53 PM

All replies

  • I think I find the answer. See following link:

    http://social.msdn.microsoft.com/Forums/fi-FI/vclanguage/thread/f7ee703f-1f18-423b-8dd3-b662198f204a

    But the function NotifyAddrChange() does not support IPV6~~~

    Does anyone know which API can monitor IPV6 changes? Thanks!

    • Marked as answer by WWWFdisk Wednesday, May 25, 2011 12:53 PM
    Monday, May 23, 2011 2:10 PM
  • NotifyUnicastIpAddressChange() notifies IPV6 IP address change. But not for subnet mask, gateway and DNS.
    • Marked as answer by WWWFdisk Wednesday, May 25, 2011 12:53 PM
    Wednesday, May 25, 2011 12:53 PM