10420/how-to-get-unicast-dns-and-gateway-address-in-uwp
Try this code Snippet I found here: https://social.msdn.microsoft.com/Forums/en-US/27a8b7a8-8071-4bc1-bbd4-e7c1fc2bd8d7/windows-10-iot-core-how-do-you-create-a-tcp-server-and-client?forum=WindowsIoT
public static string GetDirectConnectionName() { var icp = NetworkInformation.GetInternetConnectionProfile(); if (icp != null) { if(icp.NetworkAdapter.IanaInterfaceType == EthernetIanaType) { return icp.ProfileName; } } return null; } public static string GetCurrentNetworkName() { var icp = NetworkInformation.GetInternetConnectionProfile(); if (icp != null) { return icp.ProfileName; } var resourceLoader = ResourceLoader.GetForCurrentView(); var msg = resourceLoader.GetString("NoInternetConnection"); return msg; } public static string GetCurrentIpv4Address() { var icp = NetworkInformation.GetInternetConnectionProfile(); if (icp != null && icp.NetworkAdapter != null && icp.NetworkAdapter.NetworkAdapterId != null) { var name = icp.ProfileName; var hostnames = NetworkInformation.GetHostNames(); foreach (var hn in hostnames) { if (hn.IPInformation != null && hn.IPInformation.NetworkAdapter != null && hn.IPInformation.NetworkAdapter.NetworkAdapterId != null && hn.IPInformation.NetworkAdapter.NetworkAdapterId == icp.NetworkAdapter.NetworkAdapterId && hn.Type == HostNameType.Ipv4) { return hn.CanonicalName; } } } var resourceLoader = ResourceLoader.GetForCurrentView(); var msg = resourceLoader.GetString("NoInternetConnection"); return msg; }
Try the PInvoke api methods from Iphlpapi.dll. ...READ MORE
How do I get the arn of ...READ MORE
You don't read data from a MQTT ...READ MORE
I don't think the MQ135 can do ...READ MORE
down vote I dont know if I understood ...READ MORE
My Question is regarding TLS/SSL MQTT connection. ...READ MORE
HTTP(S) doesn't keep a connection open - ...READ MORE
Architecturally, IoTivity had four fundametal units: Discovery, ...READ MORE
We basically want to make our device ...READ MORE
You might want to try instead to ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.