I\'m a bit of newbie to c#/.net development, but I\'ve put together a stock tracking application for a small set of assets in my company. I have also set up the database it conn
System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()
You can also use the events NetworkAvailabilityChanged
and NetworkAddressChanged
in that class to monitor IP address and network availability changes.
EDIT: Be aware that this method checks all available network interfaces that may be on the computer (wireless, lan, etc.). If anyone of them is connected, it will return true.