I use this code:
string Address = "192.168.0.1";
DnsEndPoint hostEntry = new DnsEndPoint(Address, 80);
DeviceNetworkInformation.ResolveHostNameAsync(hostEntry, new NameResolutionCallback(nrr =>
{
if (Address == nrr.HostName)
{
HostName = "unknown host";
}
else
{
HostName = nrr.HostName;
}
}), null);
And HostName always is "unknown host". Please tell me, where is my mistake.