java如何查找设备类型,无论是计算机、移动设备还是路由器等。,
我参加了一个项目,我必须知道使用我的局域网的设备,这可以更好地利用我的项目,相反,我的项目完全基于java代码,任何人都可以帮助在java代码中找到设备类型。我有我的局域网中连接的所有系统的ip地址及其mac地址
你可以在下面搜索框中键入要查询的问题!
我参加了一个项目,我必须知道使用我的局域网的设备,这可以更好地利用我的项目,相反,我的项目完全基于java代码,任何人都可以帮助在java代码中找到设备类型。我有我的局域网中连接的所有系统的ip地址及其mac地址
# 1 楼答案
1您可以从userAgent字符串在客户端执行此操作
比如:
请参见:What is the best way to detect a mobile device in jQuery?
2此处提供免费API:http://detectmobilebrowsers.com/
3在这里您可以找到不同的方法:
http://lotusmediacentre.com/find-http-request-source-computer-mobile-phones-or-tablets/
# 2 楼答案
这不是一个非常简单和直截了当的问题。您必须根据您拥有的资源和希望使用的平台提出一些基本想法,然后围绕该想法进行构建。你可以浏览下面的链接。基本上,这些链接会把你带到“如何检测移动设备”页面,这可以让你对你必须采取的方法和步骤有一些基本的了解
这些链接可能有助于: Detecting mobile devices in a network
Detecting mobile devices in a network