[clug] How do I set up DLNA with MythTV?
Eyal Lebedinsky
eyal at eyal.emu.id.au
Thu Aug 12 00:40:21 MDT 2010
Here is what I have:
[root at e7 /etc/rc.d]# netstat -anp|grep 1900
udp 0 0 255.255.255.255:1900 0.0.0.0:* 28742/mythbackend
udp 0 0 239.255.255.250:1900 0.0.0.0:* 28742/mythbackend
and also:
[root at e7 ~]# lsof -i4|grep ssdp
mythbacke 28742 root 28u IPv4 9890447 0t0 UDP 239.255.255.250:ssdp
mythbacke 28742 root 29u IPv4 9890448 0t0 UDP 255.255.255.255:ssdp
My routing:
[root at e7 /etc/rc.d]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth0
224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0 <<<<<
0.0.0.0 192.168.2.5 0.0.0.0 UG 0 0 0 eth1
This route covers the whole multicast range.
stracing mythbackend shows an idle process on a 'poll' (but not on fds 28/29)
that times-out every minute or so. It does not show any reaction to the
incoming udp packets. Maybe they get lost earlier?
Pinging all-hosts:
# ping 224.0.0.1
gets nothing, should it not get a reply from this host?
BTW, about my switch, it must be OK because the TV does see another DLNA server,
a w7/MC.
I probably need to look deeper. And understand the technology better :-)
cheers
On 12/08/10 15:47, tridge at samba.org wrote:
> Hi Eyal,
>
> Lebedinsky writes:
> > This is a burst, seen once every 5m from the TV:
> > -----------------------------------------
> > 15:18:01.952410 IP ef.eyal.emu.id.au.blackjack> 239.255.255.250.ssdp: UDP, length 301
>
> do you see mythbackend listening on the ssdp UDP port? (port 1900).
>
> I see this:
>
> netstat -anp|grep 1900
> udp 0 0 239.255.255.250:1900 0.0.0.0:* 2089/mythbackend
>
> I also have this in my routing table:
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
>
> If you don't have that, then try this:
>
> /sbin/route add -net 239.0.0.0 netmask 255.0.0.0 eth0
>
> and also check that ifconfig eth0 shows the MULTICAST flag as set
>
> If all of the above looks OK, then check what fd mythbackend is
> listening on 239.255.255.250:1900 using lsof, then use strace to watch
> what happens when the packets come in.
>
> Cheers, Tridge
--
Eyal Lebedinsky (eyal at eyal.emu.id.au)
More information about the linux
mailing list