Index of /xtras/upnp_xtra/win
Name Last modified Size Description
Parent Directory -
screenshots/ 2017-01-03 23:25 -
readme.txt 2019-06-07 18:14 1.4K
upnp_demo_v2.zip 2019-06-07 18:43 1.7M
upnp_xtra_v0.2.zip 2019-06-07 18:43 62K
xtra UPnP
-- v0.2 (c) 2019 Valentin Schmidt
*UPnP_addPort integer port, integer protocol, string description, *ip
*UPnP_removePort integer port, integer protocol
*UPnP_listPorts
----------------------------------------
UPnP_addPort (integer port, integer protocol, string description, * string ip) -> bool success
----------------------------------------
Tries to add a new port-forwarding rule to the router settings.
Parameter 'protocol': 0 for UDP, 1 for TCP
If parameter 'ip' is omitted, the current PC's local LAN IP is used.
Returns TRUE if new port-forwarding was successfully added, otherwise FALSE.
----------------------------------------
UPnP_removePort (integer port, integer protocol) -> bool success
----------------------------------------
Tries to remove an existing port-forwarding rule from the router settings.
Parameter 'protocol': 0 for UDP, 1 for TCP
Returns TRUE if port-forwarding was successfully removed, otherwise FALSE.
----------------------------------------
UPnP_listPorts () -> list portForwardings
----------------------------------------
Returns all existing UPnP-based port-forwarding rules in the current router settings.
Each item in the returned list is a lingo list of this form:
[string ip, string description, string protocol ("UDP" or "TCP"), integer internalPort, integer externalPort]
If the router doesn't support UPnP, an empty list is returned.