wdehoog / donnie

3 stars 4 forks source link

Fails to detect running upnp/dlna servers #21

Open dikonov opened 6 years ago

dikonov commented 6 years ago

I have a notebook with running minidlna and Kodi v17.6 on Linux, which serves music via UPnP/DLNA. There are also 1) a TV with andoriod-based DLNA client and 2) a networked radio Prology WR-200 (UPnP media renderer) in the same home network. Both radio and TV can see and play content from the notebook using minidlna.

My phones (Jolla 1 and Jolla C) both running SFOS 2.2.0.29 () can see the Radio and stream music to its renderer (through the Jupii app). Donnie does detect the radio as a renderer. However, Donnie does not see the servers. Neither Kodi nor minidlna appear in the UPnP scan results!

Kodi has all UPnP service options ON. I turned off the firewall while testing. In a different home network I managed to detect another instance of Kodi v17.6 as a server but was unable to play any content. The server content browse page in Donnie remained empty or showed endless "wait" loop.

Port scan of the notebook:

Starting Nmap 5.51 ( http://nmap.org ) at 2018-06-28 09:55 MSK
NSE: Loaded 57 scripts for scanning.
Initiating Parallel DNS resolution of 1 host. at 09:55
Completed Parallel DNS resolution of 1 host. at 09:55, 2.12s elapsed
Initiating SYN Stealth Scan at 09:55
Scanning 192.168.0.12 [1000 ports]
Discovered open port 8080/tcp on 192.168.0.12        (kodi)
Discovered open port 9090/tcp on 192.168.0.12        (kodi)
Discovered open port 8200/tcp on 192.168.0.12        (minidlna)
Discovered open port 631/tcp on 192.168.0.12
Completed SYN Stealth Scan at 09:55, 0.05s elapsed (1000 total ports)
Initiating Service scan at 09:55

Firewall is off:

#iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

Jolla Phone running Donnie is in the same subnet:

$ ping 192.168.0.17
PING 192.168.0.17 (192.168.0.17) 56(84) bytes of data.
64 bytes from 192.168.0.17: icmp_seq=1 ttl=64 time=1155 ms
dikonov commented 6 years ago

I switched minidlna tivo_discovery option from bonjour to the legacy beacon and it became visible to Donnie. Kodi is still invisible. Please, add the "bonjour" server discovery method!

wdehoog commented 6 years ago

Thanks for investigating and reporting this. Discovery is done in one of the used libraries, not by Donnie itself. Once I have more time I'll take a look at it.