Getting a list of client MAC addresses on a home router

时间:2017-08-30 20:53:03

标签: python linux macos networking network-programming

I am building a small project for my self and came across a small issue.

I have a wifi router, to which I can connect by typing 192.168.0.1 and then entering my browser. It opens a standard D-Link website. There I can see a list of clients currently connected to the router.

I need to get the same information programmatically. Preferably using python, but I can also live with a Linux solution.

Is there a way to do this? I googled around but nothing I found worked for me.

1 个答案:

答案 0 :(得分:2)

从路由器获取已连接设备的IP和MAC地址列表。

On * nix | Linux使用:

netdiscover -i eth0 

在Windows上使用:

arp -a