Hello,
interested in ARP and wanted to check.
ARP protocol is used found MAC and IP addresses, yes?
How is it different from this:
IPHostEntry iphostentry = Dns.GetHostByName(strHostName);
Hello,
interested in ARP and wanted to check.
ARP protocol is used found MAC and IP addresses, yes?
How is it different from this:
IPHostEntry iphostentry = Dns.GetHostByName(strHostName);
Dns.GetHostByName()
uses DNS - to get IP address (1.2.3.4) from a DNS domain (www.google.com).
ARP is used to get a MAC address (11:22:33:44:55:66) from IP (1.2.3.4).
Let's say you write www.google.com in your browser:
ARP sends a question to the LAN - who has 1.2.3.4? And whoever has it answers - so the sender knows what's the MAC address of 1.2.3.4 that he needs to send the packets to.
See http://en.wikipedia.org/wiki/Address_Resolution_Protocol