In my C# console application, if I run this code:
IPHostEntry entry = Dns.GetHostEntry(IPAddress.Parse("192.168.6.54"));
if (entry != null)
{
var x = entry.HostName;
Console.WriteLine(x);
}
It prints HOME-PC
But If I run it in my Xamarin Forms application, on a physical Android device that is connected to the same network, x
is 192.168.6.54
. Why?