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 2 6981
If you don't find what you need in .NET I believe you could call : http://msdn.microsoft.com/library/de...lp/sendarp.asp
Patrice
--
"mabuHB" <ma****@discussions.microsoft.com> a écrit dans le message de
news:C5**********************************@microsof t.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
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/de...lp/sendarp.asp
Patrice
--
"mabuHB" <ma****@discussions.microsoft.com> a écrit dans le message de news:C5**********************************@microsof t.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bill H |
last post by:
I have a routine that displays 60 items (with thumbnails) per page.
You can click any item and displays a new page with item details. When
the user back pages it runs the query again to display all...
|
by: TK |
last post by:
Hello,
skip-new is explained as follows in the manual: "Don't use new,
possibly wrong routines." (4.1.1 mysqld Command-line Options). Is
there a list of the routines that will be disabled when...
|
by: Dylan Neild |
last post by:
OK,
I have a MySQL server running 4.0.12 on a 12 CPU Sun U4500 with 12GB of
memory.
With the query cache running, this machine would noticeably "hiccup"
(just stop responding to requests)...
|
by: David L |
last post by:
I'm running 4.0.18, and the queries in cache variable grew from about 2K
to 30K in a matter of hours when we hardly used the database at all.
Has anyone seen something similar? (The cache size was...
|
by: steve |
last post by:
Does SQL Server have a query cache similar to mysql, whereas the query
result is cached, if the table has not been changed?
If so, please refer me to more info.
Thanks.
--...
|
by: Good Man |
last post by:
Hi there
I just installed MySQL 5, and its running great except that the query
cache is not working, despite the configuration excerpt from my "my.ini"
below:
query_cache_size=5M...
|
by: UnixSlaxer |
last post by:
Hello,
Running a query for the first time on DB2 takes a fixed amount of time.
But when query is executed for the second time, the amount of time is
usually less since the query is (most...
|
by: Stan SR |
last post by:
Hi,
Some newbie questions.. :-)
First, what is the namespace to use for the Cache class ?
When I use this bit of code I get an error
if (Cache==null) Cache.Insert("myUserList",userlist);...
|
by: listerofsmeg01 |
last post by:
Hi,
Pretty new to PHP and MySQL.
I have a page on my site that displays a lot of information from
various tables. Currently I have lots of small PHP wrapper functions
around SQL queries to...
|
by: cleary1981 |
last post by:
Hi,
Thought I would post this before I start to bang my head of the table.
I have a query that outputs an array from a table.The output is showing records that are no longer in the table. Even...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |