Up |
_UPNP_OpenPort Scol 5.x or above required
Opens a port on the Internet Gateway Device.
Prototype :
fun [S S I I I] I
- S : Name, like Application Name.
- S : IP address of the PC to which messages should be routed such as _hostIP.
- I : Port number (0-65535, ports categories: 0-1023:WellKnown, 1024-49151:Registered, 49152-65535:Dynamic&Private).
- I : Protocol, should be either UPNP_TCP or UPNP_UDP.
- I : Mode, should be either UPNP_SAFE or UPNP_FORCE. The second one will overwrite any existing similar port mapping (Port+Protocol).
Return : I Port number if successful, nil if it fails.
See also :
Example :
Note
Warning : this function is defined on MS Windows Scol version only !