GNOME Bugzilla – Bug 681055
gupnp-av-cp sends the wrong IP to the MediaRenderer
Last modified: 2021-05-17 17:05:15 UTC
If the MediaServer and gupnp-av-cp are running on the same host, the URLs that gupnp-av-cp sends to the MediaRenderer with SetAVTransportURI use 127.0.0.1 instead of the host's IP address.
Is 127.0.0.1 not the correct IP address on your loopback interface?
The MediaRenderer is a distinct device from the machine running gupnp-av-cp and the MediaServer, so when the MediaRenderer attempts to connect to 127.0.0.1, it connects to itself instead of the MediaServer.
(In reply to comment #2) > The MediaRenderer is a distinct device from the machine running gupnp-av-cp and > the MediaServer, so when the MediaRenderer attempts to connect to 127.0.0.1, it > connects to itself instead of the MediaServer. Ah now I get it. Never thought of this scenerio TBH. If MediaServer is Rygel, an easy work around would be to ask it to bind itself to non-loopback network interface.
OK, I'll try that, but shouldn't SSDP or whatever skip 127.0.0.1 when searching the network for UPnP devices?
(In reply to comment #4) > OK, I'll try that, but shouldn't SSDP or whatever skip 127.0.0.1 when searching > the network for UPnP devices? No, its a perfectly valid usecase to have everything local (e.g for testing/development purposes).
Yeah, but it will still show up on the non-loopback interfaces, won't it?
(In reply to comment #6) > Yeah, but it will still show up on the non-loopback interfaces, won't it? *If* there is a non-loopback interface that is enabled. I take it that you haven't yet had the pleasure of hacking on UPnP during a flight? :)
Confirming this as this really is an issue. What IMHO should happen is that if we see the same device on both loopback and non-loopback networks, we prefer the non-loopback one. Don't yet know where and how to fix it though.
I think I'm doing sth like this in korva. I'll have a look.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gupnp-tools/-/issues/8.