问题描述
我正在开发一个应用程序,我需要在其中扫描 WiFi 网络并显示所有已连接设备的列表.
I am developing an app in which I need to scans WiFi network and display the list of all connected devices.
允许用户点击设备,应用程序应显示该特定设备的所有硬件信息.这里的硬件是指 - RAM、存储介质、存储容量、设备名称、设备 IP 地址等.
Allow a use to tap on a device and the app should show all the hardware info of that particular device. Here by hardware I mean - RAM, Storage Media, Storage Capacity, Device Name, Device IP address, etc.
现在这个设备可以是任何东西,比如 xbox、Linux/Windows 笔记本电脑、iPhone 之类的手机或任何基于 Andorid 的智能手机,甚至是打印机.
Now this device can be anything like xbox, a laptop with Linux/Windows, mobile phone like iPhone or any Andorid based smart phone or even a printer.
如何扫描 WiFi 网络并查询/检测连接到它的所有设备?
How can I scans WiFi network and query/detect all the devices attached to it?
我需要使用哪些协议来获取特定设备中的硬件列表,而不管其上运行的是什么操作系统?
What are the protocols that I need to use to get list of hardware in a particular device irrespective of the OS running on it?
推荐答案
也许是 网络发现 github 项目可以帮助你.它列出了所有连接到 WiFi 的用户的 IP 和 MAC 地址,甚至收集了一些信息,如开放端口、设备名称、ping 等.希望有帮助
Maybe the Network Discovery github project could help you. It lists all users connected to WiFi with IP and MAC addresses and gathers even some information like open ports, device name, ping, etc.Hope it helps
这篇关于如何从 Android 应用程序检测 WiFi 网络中连接的所有设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!