mkiol / Jupii

Play audio, video and images on UPnP/DLNA devices
Mozilla Public License 2.0
34 stars 6 forks source link

Doesnt find my jellyfin server #39

Closed piggz closed 7 months ago

piggz commented 1 year ago

I have a jellyfin server, with the DLNA Server tickbox selected. Using BubbleUPNP on android works fine, but Jupii doesnt find it. It does find my Sonos speaker on dlna.

Is there any logs i can provide, or a way to manauly enter a dlna server?

mkiol commented 1 year ago

Thanks for the report.

So there are two problems:

  1. 'Devices' page doesn't show Sonos speakers (Media Renderer device)
  2. 'Add item->Media Server' doesn't show jellyfin server (Media Server device)

Could you please try also 'Setting->All devices visible' and see if Sonos appears on 'Devices' list?

Nevertheless, I need logs to troubleshoot. Please do the following:

Be aware that log might contain IP addresses from your local network.

Share the log in a way which is the most convenient to you. You can send it via e-mail to jupii@mkiol.net if you like.

piggz commented 1 year ago

Sorry, no, only one issue, the sonos is fine, i can cast to that just fine

mkiol commented 1 year ago

oh, right "It does find my Sonos" :)

so, please skip 3rd point in logging procedure.

piggz commented 1 year ago

Actually, something just came to me, The jellyfin server is on a different subnet. Interesting that bubbleupnp picks it up. jellyfin is on 192.168.1.0/16 and my regular wlan is 192.168.2.0/16. Will get logs anyway

piggz commented 1 year ago

Log is https://paste.mozilla.org/Fav4DsWz

mkiol commented 1 year ago

Unfortunately log doesn't show anything interesting. Jupii didn't receive any advertisements from the media server.

In general, device discovery in UPnP is done via SSDP protocol which is sent on multicast address 239.255.255.250. Any UPnP device when starts, uses IGMP to join multicast group and sends SSDP notification to that group. Therefore any other UPnP node can receive this notification and discover peer IP address. Jupii does it. I am not an expert but if you have two subnets, you have to somehow make sure that IGMP is propagated from one network to other. I've made simple test with my old consumer-grade router and IGMP was not propagated. Some routers have feature called "IGMP-proxy" which resolves this problem.

but why BubbleUPnP is working fine? I have no idea...

piggz commented 1 year ago

So Ive jsut re-designed my internal network with a single broadcast range, and I still couldnt see my server... I also couldnt see my sonos any more

Until iptables -P INPUT ACCEPT

Now, i did change phone to a volla22, so maybe the device name was confusing the default firewall rules, ill have to investigate that, but i spent ages refreshing the device list and checking the logs, and when i changed the fw rule everything instantly appeared!

piggz commented 1 year ago

Sorry, i take that back, its still not seeing my jellyfin server, i thought the local jupii icon was for jellyfin in the device list.

Searching on my PC gives this: ╰ $ gssdp-discover -i wlp1s0 --timeout=60 Using network interface wlp1s0 Scanning for all resources Showing "available" messages resource available USN: uuid:7fccbaf1-e50e-4e4d-9ea3-0bc987395e01::upnp:rootdevice Location: http://192.168.1.4:8096/dlna/7fccbaf1-e50e-4e4d-9ea3-0bc987395e01/description.xml resource available USN: uuid:7fccbaf1-e50e-4e4d-9ea3-0bc987395e01 Location: http://192.168.1.4:8096/dlna/7fccbaf1-e50e-4e4d-9ea3-0bc987395e01/description.xml resource available USN: uuid:7fccbaf1-e50e-4e4d-9ea3-0bc987395e01::urn:schemas-upnp-org:device:MediaServer:1 Location: http://192.168.1.4:8096/dlna/7fccbaf1-e50e-4e4d-9ea3-0bc987395e01/description.xml resource available USN: uuid:7fccbaf1-e50e-4e4d-9ea3-0bc987395e01::urn:schemas-upnp-org:service:ContentDirectory:1 Location: http://192.168.1.4:8096/dlna/7fccbaf1-e50e-4e4d-9ea3-0bc987395e01/description.xml resource available USN: uuid:7fccbaf1-e50e-4e4d-9ea3-0bc987395e01::urn:schemas-upnp-org:service:ConnectionManager:1 Location: http://192.168.1.4:8096/dlna/7fccbaf1-e50e-4e4d-9ea3-0bc987395e01/description.xml resource available

for jellyfin

piggz commented 1 year ago

So, after waiting a while, jellyfin did show up! https://paste.mozilla.org/mPDWYEHm

mkiol commented 1 year ago

Cool, so it show up finally :)

The issue now is that media server was found with significant delay, right? Indeed it is a problem sometimes.

There is a work-around feature to overcome this kind of problem. You can add jellyfin to 'favorites' (a star icon on right side). When device is 'favorite' Jupii caches IP address and description of this device therefore discovery is not needed. It is assumed that favorites devices are 'always available'.

mkiol commented 7 months ago

Closing the old issue report. I assume this has already been resolved.