If '0' is used as the port number in UpnpInit, then this function can be used to retrieve the actual port allocated to the SDK.
If '0' is used as the port number in UpnpInit, then this function can be used to retrieve the actual port allocated to the SDK. If UpnpInit has not succeeded then 0 is returned.