[英]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.