UseUPnP Property
      
 

Description

Determines if component uses UPNP to open ports on firewall.

Property type

A Boolean value.  

Syntax

object.UseUPnP [= value]

The UseUPnP Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type wodVPN.
valueA Boolean value.

Remarks

Setting the UseUPnP property to True will cause wodVPN  to try to discover any UPnP-capable devices on local network, and will try to open external ports on those devices. It will use that IP/Port when it notifies remote peer about possible IP/Ports where it could try to connect. More than one such device can exist on the network. wodVPN will try to use all of them, if available.

 

wodVPN will send instruction to UPnP device to open port when you issue Search method. UPnP port will remain open only until SearchDone event is fired, since during that time component discovers remote peer.

 

When new port is opened, UPnPMapping event will be fired.