How can you translet the MAC address to IP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi EveryBody:

Two days ago I post question regarding how can I get the MAC Address And I
recived the answer which is:

Imports System.net.networkinformation

Dim networkcard() As NetworkInterface =
NetworkInterface.GetAllNetworkInterfaces()
Dim netcard As String = networkcard(0).GetPhysicalAddress.ToString

which really work fine but my question is:

How can I get the IP address related to the MAC address that I got from
previous code, Is there any way to translet the MAC address to IP.

any help will be appreciated

regard's

Husam
 
How can I get the IP address related to the MAC address that I got
from previous code, Is there any way to translet the MAC address to
IP.

You'll have to iterate through all of the system's network interfaces and
match up the MAC to the network interface.


Or are you talking about over the LAN? In that case you'll have to sniff
packets to match up the MAC and IP.
 
Back
Top