This project is read-only.

Reading Mac Address from a distant host

Dec 27, 2014 at 1:15 PM
Hi everybody.
I want to get the real mac address from a distant host. I saw the property "ReadMacAdress" of Ipv4Datagram. but I don't know how to use its parameters "int offset, Endianity endianity".
Can somebody give me an exemple.
And i want to kown if this can solve my problem
Dec 28, 2014 at 9:04 PM
Hi Barack1234,

If this distant host is not in your immediate network (LAN), you probably won't be able to get its MAC address.
Have you seen it when you looked at the packet in Wireshark?
You probably don't want to use ReadMacAddress() of IpV4Datagram, it's protected for a reason.

Boaz.