封闭网络中设备的IP地址 [英] optaining IP addresses of devices on a closed network
问题描述
在我的网络中有多个设备(客户端)的情况下,我需要通过自动化获取每个设备的IP地址.我有每个设备的MAC ID,所以我想我可以做一个反向ARP类型的呼叫,以获取网络上所有设备及其IP地址的列表.
但是,我不知道如何在代码中执行此操作.我认为会涉及到套接字吗?
谁能提供一些有关如何实现此目标的想法?我计划使用智能AP或路由器.
任何编码的想法,将不胜感激.我可以使用C#或Python.
谢谢!
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!
推荐答案
似乎Internet上有很多好的解决方案,包括The Code Project.您可以扫描网络中的一系列IP并获取所有IP和MAC地址,或者获取每个设备的MAC地址并与您的列表进行比较.
简单网络扫描器 [在C#中为本地LAN实施基本IP扫描程序 [ http://channel9.msdn.com/coding4fun/articles/Building-Network-Utilities [ ^ ]
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[^]
这篇关于封闭网络中设备的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!