How can you translet the MAC address to IP

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top