C# Dns.GetHostEntry doesn't return names of mobile devices connected to WiFi

主宰稳场 提交于 2019-12-05 20:33:41

About NetBIOS:

In order to answer your specific questions about NetBIOS, and name resolution on network, I'll give more details. If you don't have dns server running on your network, name resolution will rely only on NetBIOS resolution. It is a standard and implemented on several operating systems. However, it's not very fast.

Even if we're old, we're not legacy from the past and obsolete

You can check on Microsoft support the way names are resolved on Windows and NetBIOS is the last one.

However, NetBios name resolution is not always fully functional (like this bug on Android which was fixed in 2014) on all mobile platforms (depends on Android version for example). If you want to improve the performance, I suggest you to install a DNS server in the network.

Did you try ping -a <IP address> or nslookup <IP address> to check if the results are in line with your expectations ?

If your problem still persist, then you may investigate the .Net implementation, thanks to the above links. You can also check a more up to date version of .Net DNS implementation here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!