tags:

views:

172

answers:

2

Is there a way to watch for changes in the ip-address much the same as it is possible to watch for changes to files using the FileSystemWatcher? I'm connecting to a machine via tcp/ip but it takes a while until it gives me an ip-address. I would like to dim out the connect button until I have a valid ip-address.

+6  A: 

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

Biri
+6  A: 

For reference, here's a link to the NetworkChange class documentation that Biri mentioned.

Derek Park