Back to product page

PeerAdapterIP property


Holds IP address of remote peer for VPN.

Type

Unsigned integer.

Syntax

  • C++
unsigned int PeerAdapterIP;

Remarks

PeerAdapterIP contains IP address of remote peer when full network traffic is routed through devP2P. It is necessary for proper redirection because Windows/Linux sockets needs remote's IP address (together with his MAC address) so raw packets are sent to correct destination.

Usually you will leave this property empty, since it will be filled when LinkDone event fires. However, devP2P uses this information to answer Windows sockets ARP requests, so you can even speed up packet exchange startup if you fill this value by yourself - just make sure correct IP is entered here.

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

Code sample

  • C++

Platforms

Windows
Mac OSX
Linux
BSD