- Home /
Question by
pma07pg89 · Dec 18, 2019 at 10:27 AM ·
c#networkingwindows
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, Peter
Comment
Answer by pma07pg89 · Dec 20, 2019 at 12:09 PM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220612220334im_/https://answers.unity.com/themes/thub/images/avi.jpg)