is dlna working now on 0.29? SOLVED on 0.28

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
weff
Junior
Posts: 28
Joined: Sun Nov 26, 2017 5:46 am
Australia

is dlna working now on 0.29? SOLVED on 0.28

Post by weff »

I've been trying to get DNLA working to Android/Kodi/VLC on 0.28 this week. I finally noticed the wiki page that says it's not working on that rev.

Does that imply that 0.29 is OK or that 0.27 is the last actually working release?


Thanks
Last edited by weff on Sun Jun 24, 2018 10:55 pm, edited 1 time in total.
weff
Junior
Posts: 28
Joined: Sun Nov 26, 2017 5:46 am
Australia

Re: is dlna working now on 0.29?

Post by weff »

Hmmm weird. After struggling with 0.28 this for a day now, it suddenly started working with VLC (but not kodi-17)!

Worrying thing is I don't know what fixed it!
weff
Junior
Posts: 28
Joined: Sun Nov 26, 2017 5:46 am
Australia

Re: is dlna working now on 0.29?

Post by weff »

This seems to be it:

The dlna client on linux appears to need a port opened to see the server. So
far, vlc and kodi work as long as the firewall is down when I start
them. Once they see the server then the firewall can be put up again.

vlc dlna client appears to be listening on 49152 (but this could be random)

For completeness, on the dlna server, open ports 111/tcp 8200/tcp 1900/udp
weff
Junior
Posts: 28
Joined: Sun Nov 26, 2017 5:46 am
Australia

Re: dlna is working for me now on 0.28

Post by weff »

I think I'm now happy with this on mythtv-0.28. In summary:

On the Mythtv/dlna server, open ports 111/tcp 8200/tcp 1900/udp

On the dlna client either disable the firewall (that's how android runs, it appears) or use this tweak to the firewall on the client to allow a minimal port opening for ports 32000-60000/udp (ssdp protocol?) to just the dlna server:

This is for Fedora-27:

Code: Select all

firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="192.168.0.19" port protocol="udp" port="32000-60000" accept'
firewall-cmd --reload
My dlna server is fixed at 192.168.0.19

It results in this new rule in iptables:

Code: Select all

ACCEPT udp --  192.168.0.19 anywhere udp dpts:32000:60000 ctstate NEW
Hope that helps anyone else struggling with this.
weff
Junior
Posts: 28
Joined: Sun Nov 26, 2017 5:46 am
Australia

Re: is dlna working now on 0.29? SOLVED on 0.28

Post by weff »

Sigh! I'm not done yet. The solution above is working for vlc client. kodi-17.6 is still broken - even with the client firewall completely down, it fails to see the MythTv DLNA server. It does see the minidlna server however - but not the videos/mp3s!!!
Post Reply