Re: Query ARP Cache in vb.net

From: mabuHB (mabuHB_at_discussions.microsoft.com)
Date: 11/25/04


Date: Thu, 25 Nov 2004 06:31:02 -0800

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.

"Patrice" wrote:

> If you don't find what you need in .NET I believe you could call :
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/sendarp.asp
>
>
> Patrice
>
> --
>
> "mabuHB" <mabuHB@discussions.microsoft.com> a écrit dans le message de
> news:C51D33F7-3994-4214-8697-5D7948442629@microsoft.com...
> > 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
>
>
>



Relevant Pages

  • Re: Query ARP Cache in vb.net
    ... > I am trying to write a Wake-On-LAN utility for a local subnet. ... but before this I need to find the MAC addresses on the local ... > I had planned to query DHCP on the WAN to get the MAC addresses, ... > Does anybody know how to query the ARP Cache with vb.net code? ...
    (microsoft.public.dotnet.general)
  • Re: polling an intranet for a device type
    ... Many thanks for your response. ... We have some new products that are network visible and can have any IP ... Alternatively I could query each individual IP address and monitor the ... If I were to ping each address I would ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Getting an IP address from a MAC address
    ... > from a MAC address??? ... responding to the ping don't exceed the size of your ARP cache, ... Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts! ...
    (Security-Basics)
  • Re: Network Security
    ... Looking in your ARP cache after trying to ping will show this problem. ... the networks. ... the security guards and a couple of network ...
    (linux.redhat)
  • Re: Still trying to get my site up!
    ... ;; res options: init recurs defnam dnsrch ... ;; QUERY SECTION: ... ;; AUTHORITY SECTION: ... PING beerstud.us: 56 data bytes ...
    (freebsd-questions)