Is there a way to find mapping between MAC address to IP address in C#. i think RARP should be able to do that, is there an API available in C# for that
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You can use this class
and use it as
Why not spawn a process to invoke
rarp
and read in the input stream from the process's output? That's a real cheap simple and cheerful way of doing it...top-of-my-head, it goes something like this:Then it's a matter of parsing the
sResults
to get the MAC address.In case you are looking for an API based approach and are not able to do a Process.Start() take a look at this:
http://www.codeproject.com/KB/IP/host_info_within_network.aspx
It allows mapping of hostname, IP address and MAC address.