I am developing a uwp application that builds to windows store and xbox basically.
My code is like
var profile = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile();
var networkType=null;
var interfaceType = profile.NetworkAdapter.IanaInterfaceType;
// 71 is WiFi & 6 is Ethernet
if (interfaceType == 71)
{
networkType="wifi";
}
else if (interfaceType == 6)
{
networkType="ethernet";
}
when i was connected to wifi and run this code in xbox i am getting the connection type as "ethernet", but when i run the same code on my local machine i am getting the value as wifi.
Any helps appreciated:)