Query ARP Cache in vb.net

G

Guest

I am trying to write a Wake-On-LAN utility for a local subnet. I can do the
Wake-On-LAN, but before this I need to find the MAC addresses on the local
LAN.

I had planned to query DHCP on the WAN to get the MAC addresses, but there
are security restrictions in place that will restrict this. I have therefore
decided to ping all the devices on the local subnet, and then query the ARP
Cache and pick out the MAC addresses. I have got the ping bit (sort of)
working, but I don't know how to get the info out of the ARP Cache using
vb.net. (I can call dos commands and pipe to a text file and extract the info
from the text file, but I would rather query the cache directly).

Does anybody know how to query the ARP Cache with vb.net code? Or can
anybody point me towards some info about this? I have searched the net and
trawled through various forums with no results what-so-ever.

Any help will be much appreciated.

Regards,

Martin
 
G

Guest

Thanks, that certainly appears to do what I need. It looks like I could even
do away with the ping bit of my code. Now all I need is a vb.net equivalent.

M.
 

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