VPNInterface Object
    
 
Description

VPNInterface Class

Remarks

VPNInterface object holds information about each Interface (or network adapter) found on your computer that is capable of being used by wodVPN. In order to use any of those adapters you should set it's IP address and Netmask, and put local peer and remote peer to same network. For example, you can set local side to 192.168.1.1 (netmask 255.255.255.0) and remote peer's IP address to 192.168.1.2 (netmask 255.255.255.0). If you use wrong IP/Netmask combination, it is possible that Windows sockets will not route packets correctly to remote side.

wodVPN collects all raw packets from VPN adapter and routes it to remote side. Remote side then unpacks it and "pushes" to adapter so it becomes available to Windows sockets. Windows do not see a difference between real network adapters which are connected through cable, and our virtual network adapters which are connected through wodVPN.

Currently wodVPN supports included 'WeOnlyDo Network Adapter', but it can also use Wippien's adapter, and OpenVPN's adapter. Only one process at a time can use one adapter, but multiple instances of wodVPN in same process (inside your application) can all share same adapter.

Members

Properties
DriverNameRead-write property Returns driver name of the interface.
GuidRead-write property Returns GUID of the interface.
LocalIPRead-write property Holds local IP address of the interface.
LocalMACRead-write property Holds MAC address of local interface.
LocalNetmaskRead-write property Holds netmask of local interface.
MediaStatusWrite-only property Sets media status (connected or disconnected).
NameRead-write property Returns name of the interface.
RedirectActiveRead-write property Determines if interface raw packets are redirected to remote peer.