VPNRequest Event
    
 

Description

Fires when VPN connection is requested by remote side.

Syntax

Private Sub object_VPNRequest(RemoteIP, RemoteMAC)

The VPNRequest Event syntax has these parts:

PartDescription
objectA wodVPN object.
RemoteIP A String value. IP address of remote peer.
RemoteMAC A String value. MAC address of remote peer.

Remarks

This event is fired when remote peer set RedirectActive property to True on his side, and is ready to start forwarding raw network packets between his adapter, and your adapter. When this event is received, you should choose appropriate adapter from VPNInterfaces (if you haven't done so yet) and also set RedirectActive property to True. At this point wodVPN will start routing packets between them, and VPN is established. wodVPN will overwrite VPNRemoteIP and VPNRemoteMAC properties with RemoteIP and RemoteMAC arguments provided in this event only if those properties are empty. If you have set them manually, these two arguments are ignored.

If RemoteIP contains "0.0.0.0" then remote peer's IP address is not correctly set, and traffic will not be routed correctly (VPN will not work). You should make sure RemoteIP and LocalIP or selected network adapter are in same subnet.