GetAllNetworkInterfaces returns empty list

UWP Min Build Version: 16299
Unity Version 2018.4.12f

Hello all,

I am using the System.Net.NetworkInformation method NetworkInterface.GetAllNetworkInterfaces(). In a standalone UWP app deployed to the Hololens 2 it works and I can iterate the list.

Built in Unity with IL2CPP backend, this list returns 0 on the Hololens 2.

I have read that the System.Net.Network information classes were implemented for UWP from the above min build version. Is there something I am missing?

Many thanks,

This requires the iphlpapi.dll to be built with the project otherwise it won’t work. This poses a problem if you want to use on both X86 and Arm as the Dll Imports have different signatures.