简体   繁体   English

我可以检查连接到wifi网络的用户(或手机)数量吗

[英]Can I check the number of users (or mobile phones) connected to wifi network

I have read these Getting Started with WiFi on Android . 我已经阅读了这些Android上的WiFi入门 Implemented Marakana's tutorial for basic wifi functionalities. 实施了Marakana的基本wifi功能教程。

But my question is: Is there a way to find the number of users connected to a wifi network? 但是我的问题是:有没有办法找到连接到wifi网络的用户数量?

If it can be done, kindly share a link or resources. 如果可以,请共享一个链接或资源。

If it cant be done, kindly provide some detail, why not? 如果无法完成,请提供一些细节,为什么不呢?

Thank you, 谢谢,

Getting a list of computers on a network is inherently an unreliable proposition, wifi or wired. 获取网络上的计算机列表本质上是不可靠的提议,无论是wifi还是有线。

There are three common approaches: a discovery protocol, scanning, and passive listening. 共有三种常用方法:发现协议,扫描和被动侦听。

Discovery protocols (such as LLDP from the UPnP framework) work very well for devices that support them. 发现协议(例如UPnP框架中的LLDP)对于支持它们的设备非常有效。 Occasionally also for devices that don't. 有时也适用于那些不需要的设备。 They don't work at all if firewalls block them, or if switches or wifi access points are configured not to allow traffic between devices. 如果防火墙阻止了它们,或者将交换机或wifi接入点配置为不允许设备之间的通信,则它们根本不起作用。

Scanning means, sending a probe (such as a ping) to each possible IP address. 扫描是指将探测(例如ping)发送到每个可能的IP地址。 This is something many intrusion detection devices block, and many wifi access points will also prevent you from sending a ping to another device. 这是许多入侵检测设备阻止的,许多wifi接入点也将阻止您向其他设备发送ping。 Also, scanning is entirely unfeasible in IPv6 because each network has billions of IP addresses to probe, rather than the usual 254 in IPv4. 而且,在IPv6中进行扫描是完全不可行的,因为每个网络都有数十亿个IP地址要探测,而不是在IPv4中通常为254个。

Passive listening means, simply paying attention to the layer-2 traffic on the network, and building a table of MAC addresses based on the ARP traffic (or all traffic). 被动侦听意味着仅关注网络上的第二层流量,并基于ARP流量(或所有流量)构建MAC地址表。 That only works reliably if you have a wired network with a hub - switches don't forward all layer 2 traffic everywhere (although the ARP messages you need most are usually broadcast and available). 仅当您具有带有集线器的有线网络时,这才可靠地起作用-交换机不会将所有第2层流量转发到任何地方(尽管您最需要的ARP消息通常是广播的并且可用)。 WiFi isolation may also prevent you from getting enough layer 2 traffic. WiFi隔离可能还会阻止您获得足够的第2层流量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查用户是否连接到wifi网络? - How do I check if the user is connected to a wifi network or not? 如何检查我是否连接到某个wifi网络? - How to check if I am connected to a certain wifi network? 我可以识别与wifi网络连接的所有android的主机名吗? - can I identify host name of all android connected with a wifi network? 我可以使用 WiFi 在两部未连接路由器的 android 手机之间传输数据/消息吗? - Can I use WiFi to transfer data/messages between two android phones, not connected to a router? 如何检查移动数据和WIFI是否已连接? - How to check if both Mobile Data and WIFI are connected? 在Android上连接WIFI后如何通过移动网络保持连接? - How to stay connected through mobile network after WIFI is connected on Android? 应用程序可以通过编程方式请求连接特定的WIFI网络吗? - Can an application programaticallyrequest that a particular WIFI network be connected to? 如何在Android中检查移动网络是否连接到互联网 - How to check if mobile network is connected to the internet or not in android 如何检查当前连接的网络是否为 WIFI 5G? - How check if current network connected is WIFI 5G? 检查设备是否连接到 WiFi 接入点或移动热点? - Check if the device is connected to WiFi access point or Mobile hotspot?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM