Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a situation where I have multiple devices (clients)on my network and I need to obtain the IP address of each device via automation. I have the MAC id of each device, so I think I can do a reverse ARP type of call to get a list of all devices on the network and their IP addresses.
However, I do not know how to do this in code. I assume sockets would be involved?
Can anyone provide some ideas as to how I can accomplish this? I plan to use either a smart AP or a router.

Any coding ideas would be appreciated. I can either use C# or Python.


Thanks!
Posted

1 solution

Seems like there are many good solutions available on the Internet, including The Code Project. You can scan a range of IPs within your network and grab all IPs and MAC addresses, or obtain each device's MAC address and compare to your list.

Simple Network Scanner[^]

Implement a basic IP Scanner for a local LAN in C#[^]

http://channel9.msdn.com/coding4fun/articles/Building-Network-Utilities[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900