Hi,
can somebody suggest me a url to some API information to UPnP and VBS ?
I need to build a script which allows me to a) determine a UpNP capable
router on my net and b) readout some schema information
for example:
um:schema-upnp-org:service:WANPPPConnection:1-> GetExternalIPAddress(String)
I Found this Script to set a port mapping via upnp but have no clue how to
simple read already present information:
'===========================================================
'This program forwards a port via UPnP
Set nat = CreateObject( "HNetCfg.NATUPnP")
Dim mappingPorts
Set mappingPorts = nat.StaticPortMappingCollection
MsgBox("Click OK to forward the port")
'Map the SIP port
mappingPorts.Add 5060, "UDP", 5060, "10.0.0.100", TRUE, "SIP"
'Get some info about the currently mapped ports
for each mappingPort in mappingPorts
MsgBox(mappingPort.externalIPaddress)
Next
MsgBox("Click OK when finished")
'Remove the mapped port
mappingPorts.Remove 5060, "UDP"
'===========================================================
thanks.