Wi-Fi tethering - how to get list of connected clients

后端 未结 4 1087
轮回少年
轮回少年 2021-01-03 01:55

Is there any way to get a the list of connected MAC addresses when my phone is on Wi-Fi tethering mode?

4条回答
  •  醉梦人生
    2021-01-03 02:18

    Reading /proc/net/arp would provide the information for both static and DHCP clients that have communicated with the device during the last 60 seconds (configured in /proc/sys/net/ipv4/neigh/wl0.1/gc_stale_time where wl0.1 is the wireless network interface on my phone).

    It is available for non-root users too.

提交回复
热议问题