Using Xamarin Studio 5.8.1 (build 8), Xamarin.Android 188.8.131.52, while trying to port a Java Android app to Xamarin C#, I am attempting to get the network adapter information. In my code I am calling:
NetworkInterface ni = NetworkInterface.GetAllNetworkInterfaces();
I am receiving the exception:
System.SystemException: getifaddrs() failed
at System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in :0
at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in :0
Searching this forum I found 3 other threads reporting the same issue, dating back to Feb to Mar 2013 with no reported resolution. One of the threads references a Bugzilla bug (https://bugzilla.xamarin.com/show_bug.cgi?id=1969) with a status of 'RESOLVED FIXED', but that doesn't appear to be in the current version of Xamarin Studio.
Is there a known fix available or a working solution to getting the NetworkInterface information?