VPNRemoteMAC Property
      
 

Description

Holds MAC address of remote peer for VPN.

Property type

A String value.  

Syntax

object.VPNRemoteMAC [= value]

The VPNRemoteMAC Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type wodVPN.
valueA String value. Filled with MAC address of remote peer on VPNRequest event.

Remarks

VPNRemoteMAC holds MAC address of remote peer's VPN interface. It is needed by Windows 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. wodVPN will fill this property when VPNRequest event fires - as a result of RedirectActive property being set on remote peer's side. However, if you wish to speed up the process, you can fill this value by yourself on startup, so wodVPN can answer Windows 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 VPNRemoteIP property. If this property remains empty, wodVPN will fill it for you.

In order to obtain local MAC for each adapter, you should check VPNInterface's LocalMAC property.