[mythtv-users] UPnP: only works locally

Bill Williamson bill at bbqninja.com
Sat Feb 24 03:51:43 UTC 2007


Short issue:  UPnP only shows up locally.  When I scan for UPnP
devices (steps below) using either a linux or windows box Myth doesn't
show up.  However, on windows, if I use the Intel Device Scanner and
MANUALLY put in the URL then Myth shows up fine.

My guess is that this is a multicast issue, but I don't even know
where to start.  I've manually added the 224.0.0.0/240.0.0.0 route,
and it already existed on my windows box.  Multicast was already
enabled on both linux boxes per ifconfig, and I manually added
"allmulti" as a trail/error type thing.

Anyways, any ideas on how to start debugging this would be great.  One
odd thing I noticed was that in all documentation about multicast,
they say that EVERY multicast enabled device should respond if you do
a ping 224.0.0.1 with a TTL of 3 or so (to account for switches/etc).
However, ONLY 192.168.0.50 responds, no matter where I ping from.
192.168.0.50 is my WAP54G wireless access point... perhaps it is
screwing up for some reason?  I'll test a bit later with that
unplugged, and maybe try with a different switch, but I'm not holding
out hope for such an easy fix.


______Testing_____

*Linux backend
1. use djmount
bbqninja at megatron:~/working$ sudo djmount -f test
[I] Charset : successfully initialised charset='ISO-8859-1'
[I] UPnP Initialized (192.168.0.100:49152)
[I] Add new device : Name='MythTV AV Media Server'
Id='uuid:1e4e5551-abfa-4271-a540-457ae98a0274'
descURL='http://192.168.0.100:6544/getDeviceDesc'
2. test djmount
root at megatron:/home/bbqninja# ls working/test
devices  MythTV AV Media Server

root at megatron:/home/bbqninja# ls working/test/MythTV\ AV\ Media\
Server/Recordings/By\ Channel/
1 ABC  2 ABC2  3 SC10  4 WIN  5 PRIME  6 SBS

Success!  It lists my recordings under each channel/category/etc as expected


*Windows box:
1. Start up Intel Device Spy
2. Rescan network... nothing
3. Manually Add 'http://192.168.0.100:6544/getDeviceDesc' using the menu....

Success!


*linux frontend:
1. start djmount
batkiwi at happyelf:~/working$ sudo ./djmount -f test
[I] Charset : successfully initialised charset='UTF-8'
[I] UPnP Initialized (192.168.0.8:49152)
2. test (not expecting anything since it didn't list my myth box as
connected...)
root at happyelf:/home/batkiwi# ls working/test
devices
root at happyelf:/home/batkiwi# ls working/test
root at happyelf:/home/batkiwi# cat working/test/devices
root at happyelf:/home/batkiwi#



______Machines______
*Dedicated Backend:
-Ubuntu Edgy, fully updated
-mythbacked --version:  0.20.20060828-3 (from ubuntu packages)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
224.0.0.0       *               240.0.0.0       U     0      0        0 eth0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

eth0      Link encap:Ethernet  HWaddr 00:0F:EA:55:26:3E
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1


*Linux Frontend:
-Ubuntu Edgy
-Same version of myth, myth on it's own is running great remotely

routing table and eth0 are identical except replace .100 with .8 for
IP addresses (and a different MAC)

*Windows Box
-XP SP2
-Firewall turned off


More information about the mythtv-users mailing list