simple-whip-client icon indicating copy to clipboard operation
simple-whip-client copied to clipboard

Error creating GUPnP context: Failed to bind socketError binding to address 10.10.10.122:1990: Cannot assign requested address

Open bigbean17 opened this issue 1 year ago • 9 comments
trafficstars

Hi,

I'm using simple-whip-client to broadcast to Dolby. I found that this error Error creating GUPnP context: Failed to bind socketError binding to address 10.10.10.122:1990: Cannot assign requested address always occur after running for around 1-2 hours. During this time nothing was changed. And there are not much debug information for this. What might be the cause of this problem? Any help would be appreciated.

Thank you!

bigbean17 avatar Aug 01 '24 07:08 bigbean17

Hi there, we also have this issue.

jessedewild avatar Sep 23 '24 10:09 jessedewild

@bigbean17 Do you already have more information on this?

jessedewild avatar Sep 23 '24 10:09 jessedewild

@jessedewild Sorry, not much information I can provide. I couldn't solve this issue so I switched to gstreamer.

bigbean17 avatar Sep 23 '24 11:09 bigbean17

And are you using it with the WHIP server? Or can you give me an example of how you are using GStreamer?

jessedewild avatar Sep 23 '24 11:09 jessedewild

Not sure about your case, I'm trying to stream from an Axis camera to Dolby, so I followed this document . If you are streaming to Dolby as well, you could open a ticket if the example in the document does not work. Hope that helps.

bigbean17 avatar Sep 23 '24 11:09 bigbean17

Alright thanks! One more question, do you have a screenshot of when the error occurred in the logs? That way I can implement a restart feature for when that error appears.

jessedewild avatar Sep 23 '24 13:09 jessedewild

Apologies for the delay in this response.

It looks like the way GStreamer's webrtcbin uses libnice, it's not disabling UPNP (as we do in Janus, instead). Considering UPNP is useless in WebRTC, my guess is that getting it to be disabled in there would fix your issue.

I don't think there's an easy way to do that programmatically (e.g., finding the nice object in webrtcbin, accessing the NiceAgent instance somehow, and do it there using libnice's API), so fixing this upstream in GStreamer may be easier.

lminiero avatar Sep 23 '24 13:09 lminiero

@bigbean17 @jessedewild FYI, I opened a suggestion to disable UPNP in webrtcbin on the GStreamer repo:

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3832

If you have more info on what happens, as in the specific issue you experience when you see those errors in the logs, please consider providing it there too. This is to ensure the UPNP log message is not just a red herring, and the cause of the issue potentially being somewhere else.

lminiero avatar Sep 24 '24 08:09 lminiero

Is it possible to disable UPNP programmatically then? Or is that sadly not possible? We are using GStreamer 18, because it is installed on an older Debian version

jessedewild avatar Sep 26 '24 21:09 jessedewild