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
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