Need MAC Address of LAN Devices, Access ARP Cache

S

Shoveler

I need to find out the MAC Address of my devices on the net work. I
can send a ping command in my app, and Windows will build it's ARP
Cache. How can I access this ARP Cache in code? Of is there an easier
way to access MAC address of devices on the LAN?
 
L

Lebesgue

Shoveler said:
I think I found what I need.

http://www.codeproject.com/csharp/pacanal.asp

They have a C# app that captures entire packets, just like Ethereal. I
can use the WinPCap conversion that Firat designed.

I'm still open to suggestions though!

Have you considered launching an arp command as new process, letting it
display the arp table (arp -a), redirecting the console output and reading
and parsing it to get the mac addresses?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top