Search code examples
cnetwork-programmingupnpminiupnpc

Find all UPnP gateways with miniupnp


Discovering gateway devices process using miniupnp is as follows:

  1. Call upnpDiscover(...) to find all available devices which support UPnP protocol.
  2. Call UPNP_GetValidIGD(...) to get first gateway from this list.

Is there any solution to get all gateways from list, obtained in step 1?


Solution

  • Made a fork of miniupnpc. Added routine GetValidConnectedIGDs, which returns list of all gateway devices found.