GetAllNetworkInterfaces() throws exception
问题 In Mono for Android I'm trying to obtain all the IP addresses for my device within the local network. I don't mind loopbacks but I'm not interested in calling DNS. The best way seems to be calling... using System.Net.NetworkInformation; NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces(); ...except it throws... System.EntryPointNotFoundException: getifaddrs Any suggestions? 回答1: Unfortunately this is a known bug in Mono for Android. The bug report is available here. 回答2: