Back to product page

UseUPnP property


Determines if component uses UPNP to open ports on firewall.

Type

Boolean

Syntax

  • Basic
object.UseUPnP [= value]
The UseUPnP(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodXMPP
valueA Boolean value.

Remarks

Setting the UseUPnP property to True will cause wodXMPP to try to discover any (Universal Plug and Play) UPnP-capable devices on local network, and will try to open external ports on those devices before file transfer is initiated. It will use that IP/Port when it notifies remote contact about possible IP/Ports where it could try to connect. More than one such device can exist on the network. wodXMPP will try to use all of them, if available.

wodXMPP will send instruction to UPnP device to open port when you issue SendFile method. UPnP port will remain open only until file transfer completes, or you call Disconnect method to disconnect from the server.

Platforms

Windows