I know, from the mac address, how to get the manufacturer information but is there a way to get the device name. I attach a snapshot showing the view from my dsl router. Is it specific to a wifi protocol or is there a generic way to get that info? I'd like to get the name: bernard-ThinkPad-T420
答案 0 :(得分:0)
我找到了答案。我没有意识到主机注册到dns。 所以这是代码行:
String host = InetAddress.getByName("192.168.1.1").getHostName();