Reputation: 41
How can I use Python to ping a device when I only know it's MAC address. I'm trying to build a system that pings a device every now and then to see if a device is currently connected to the network, but I don't want to ping by an IP address as they could very easily change (and no I don't want to statically assign addresses).
Upvotes: 4
Views: 2495
Reputation: 1189
Get IP address from MAC on the fly (every time you need to ping, re-calculate this) and then ping the IP address.
Upvotes: 1