How to Resolve MAC addresses. Help.

  • Thread starter Thread starter AP
  • Start date Start date
A

AP

Hello, I've been Googling for hours...

Anyways, in VB.NET,
I wish to enter in a mac address and resolve it to an IP address.
(local IPs)
And simply output the ip into a textbox.

I found out how to get the MAC address from the host name
by importing System.Managment.

I was wondering if anybody knew how to do this in VB.NET?
If it is possible, can you post some code?

please email me at hello @ compositing DOT net

-AP
 
AP said:
Hello, I've been Googling for hours...

Anyways, in VB.NET,
I wish to enter in a mac address and resolve it to an IP address.
(local IPs)
And simply output the ip into a textbox.

I found out how to get the MAC address from the host name
by importing System.Managment.

I was wondering if anybody knew how to do this in VB.NET?
If it is possible, can you post some code?

untested, just an idea:
Once your machine receives a request your local ARP cache will have the
mac address of the client or the router the client is behind. I don't
know how to access the ARP cache from VB.NET (maybe --untested!!-- WMI),
but you can extract it from the output of arp -a in a
DOS-Command-Window, which can be easily automated via Process.Start(...).

HTH

Cheers

Arne Janning
 
Yea I've looked into ARP.
But i have not been able to find proper documentation.

I'm not ARP material, so I would be still new at it.

Thanks for the suggestion.
I do belive it is possible some how. I can't be the only one who wants
to do this you know what i mean?


Well, i'll keep posted if i find anything.
Please do the same if you have interest in it too.

Thanks,

AP


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top