Pet*_*ell 4 c# mono networking android xamarin.android
在Mono for Android中,我试图获取本地网络中设备的所有IP地址.
我不介意环回,但我对调用DNS不感兴趣.
最好的方式似乎是打电话......
using System.Net.NetworkInformation;
NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
Run Code Online (Sandbox Code Playgroud)
...除了它抛出......
System.EntryPointNotFoundException:getifaddrs
有什么建议?
| 归档时间: |
|
| 查看次数: |
2256 次 |
| 最近记录: |