So with Netduino.IP (both the full stack and the hybrid stack used on Netduino 3 Wi-Fi), we have implemented System.Net's GetIsNetworkAvailable method.
To use this, simply add NetduinoExtensions.dll to your project. This new assembly is included in the 4.3.2.1 SDK (or newer).
Here is some code which retrieves the current network connection state:
// wait for network connectivity bool isNetworkAvailable = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();If you're using DHCP (instead of static IP), you can also determine if you have received a DHCP-allocated IP address. This works with both lwIP and Netduino.IP.
IPAddress ipAddress = IPAddress.GetDefaultLocalAddress();Chris