
PeerAdapterMAC property
Holds MAC address of remote peer for VPN.
Type
String.Syntax
- C++
unsigned char PeerAdapterMAC[6];
Remarks
PeerAdapterMAC holds MAC address of remote peer's VPN interface. It is needed by Windows/Linux sockets to determine where to send raw network packets. Each Ethernet card can accept several IP addresses (and perhaps route them to other devices), so they need to 'announce' list of IP addresses that they will collect packets for. devP2P will fill this property when LinkDone event fires. However, if you wish to speed up the process, you can fill this value by yourself on startup, so devP2P can answer Windows/Linux sockets' questions with correct packets even sooner than VPN is established with remote peer. Typical MAC address looks like this: 00:ff:e5:41:ae:a7.Together with this property, you can also set PeerAdapterIP property. If this property remains empty, devP2P will fill it for you.
In order to obtain local MAC for each adapter, you should check VPNInterface's LocalMAC property.
You can use MacToText to get string representation of the MAC address.
Platforms
WindowsMac OSX
Linux
BSD