question

RyanWoodings-0018 avatar image
0 Votes"
RyanWoodings-0018 asked RobCaplan edited

Does NetworkInterface.GetIPv4Statistics() return data in macOS?

We have an application that we are porting from WPF (.Net Framework 4.8) to Xamarin.Mac and are struggling to get information from NetworkInterface.GetIPv4Statistics(), the IPv4InterfaceStatistics that is returned is all 0s.

The documentation for this function doesn't mention any special macOS permissions that might be required; does anyone know how to get valid data from NetworkInterface.GetIPv4Statistics()? Thanks!!!

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers