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

后端 未结 4 1115
轮回少年
轮回少年 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:35

    Firstly, you must have a rooted device. When it's done just read dnsmasq.leases file. Usually it is placed at: /data/misc/dhcp/dnsmasq.leases. A structure of the file is pretty simple - each line is a summary of a connected user. The summary has several fields including MAC. I didn't find a possibility to get MAC without root. Please correct me if I'm wrong.

提交回复
热议问题