Keep track of the status of the ip address

Is there a way to watch for changes in the ip address in the same way as you can watch for changes to files using FileSystemWatcher? I connect to the machine via tcp / ip, but it takes some time until it gives me the ip address. I would like to disable the connect button until I have a valid ip address.

+5
source share
1 answer

Check the NetworkChange class. It raises an event when the network address changes.

+6
source

All Articles