Port Mapping Entires/Information

Sep 20, 2012 at 4:35 PM

I just realized there is no way to get Port mapping information from this framework.

Did I get that wrong?

Coordinator
Sep 20, 2012 at 9:38 PM

Yes there is, however, it has nothing to do with the framework, it has to do with the Services.

 

The WANPPPConnection and WANIPConnection services have actions called GetSpecificPortMappingEntry, simply call this iterating through the indexes from 0 until an error is returned, each call will return another UPnP port mapping, you can also get the static mappings with a different service.

 

Please see http://www.upnp.org specifically the WANPPPConnection and WANIPConnection service documentation for more stuff that can be done with these items. You can try this using my test application that comes with the download.