Discovering gateway devices process using miniupnp is as follows:
upnpDiscover(...)
to find all available devices which support UPnP protocol.UPNP_GetValidIGD(...)
to get first gateway from this list.Is there any solution to get all gateways from list, obtained in step 1?
Made a fork of miniupnpc. Added routine GetValidConnectedIGDs
, which returns list of all gateway devices found.