Click here to Skip to main content
14,357,858 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,

I would like to know if there is a notification mechanism in C# for IP address change for a particular network interface.

I know that NetworkChange.NetworkAddressChanged can be made use to detect in IP change but I am looking for micro details like IPv4/IPv6, DNS and gateway IP change notifications.

Thanks for the help.
Posted
Updated 8-Aug-11 0:56am
v2
Comments
Slacker007 8-Aug-11 5:57am
   
Edited for readability and some formatting.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I do not think you can get this detailed info on a NetworkAddressChanged event.
What about get all the detailed when your program starts and when you receive NetworkAddressChanged event, get all the detailed again and then compare to find what has changed.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100