UPnP only works on localhost (doesn't show up on players)
#16
I have the same problem. I have XBMC 9.10 running on an AMD64 machine (Ubuntu 9.10). I have my music and video libraries setup and working within XBMC. I turned on the UPnP server option in the settings, and my Xbox 360 does not see it at all.
Reply
#17
just wanted to add i have the same issue on 64bit ubuntu 8.10, xbmc 9.10
Reply
#18
Did anyone ever figure out how to workaround this?
Reply
#19
No I experience this problem and here on Ubuntu 9.10 amd64. I will try and test latest svn, and building it from source. But If i have any success will inform here Smile
pork Wrote:Did anyone ever figure out how to workaround this?
Reply
#20
damencho, did you ever get upnp working? i've tried everything I can think of and seen several other threads teh past few weeks with similar problems, seems no one has an answer.
Reply
#21
Hi,

I don't know if this works for you, but at least it works on my opensuse 11.1-64 system:

http://trac.xbmc.org/ticket/8620

cu
Michael
Reply
#22
I'm having a similar issue on my Ubuntu 9.10. I'm running version 1:9.11-karmic1 of XBMC. I took a look at what netstat shows and I believe I'm having the same issue. Looks like xbmc is listening/sending only on the local loopback interface.

Can anyone confirm that this is the same issue?

root@nas:~# netstat -anp |grep xbmc
tcp 0 0 0.0.0.0:54683 0.0.0.0:* LISTEN 11519/xbmc.bin
udp 0 0 0.0.0.0:1900 0.0.0.0:* 11519/xbmc.bin
udp 0 0 127.0.0.1:9777 0.0.0.0:* 11519/xbmc.bin
Reply
#23
From the xbmc server, paste the output of "/sbin/route -n"

If a linux host does not have a route for multicast, it won't know where to send it.
Reply
#24
root@nas:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth0

Do I need to add a route for broadcast?
Reply
#25
rwall Wrote:root@nas:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth0

Do I need to add a route for broadcast?

For the multicast you do, yes.


route add -net 239.0.0.0 netmask 255.0.0.0 eth0

Do that as root or with sudo.

To make it last, you can add it to /etc/rc.local

One that's done, try again.
Reply
#26
I added the route and restarted xbmc. That however doesn't seem to have solved the problem.
Reply
#27
rwall Wrote:I added the route and restarted xbmc. That however doesn't seem to have solved the problem.

Verify the route is still there with /sbin/route -n again.

The next step would be to verify that the multicast advertisements are making it out to your network.

Install tshark (sudo apt-get install tshark) and do this from a terminal
sudo tshark -i eth0 multicast

Let that run for a while and see if there's any output. If not, then that means the multicast ads aren't making it out.

Do you have a firewall running on the XBMC box?
Reply
#28
I cant see how adding a multicast route would help if it is only listening on local host. Besides I work with multicast applications every day and I have never ever had to add a route for multicast.
Reply
#29
jamesdew Wrote:I cant see how adding a multicast route would help if it is only listening on local host. Besides I work with multicast applications every day and I have never ever had to add a route for multicast.

For a linux upnp server, you do. We're not talking about a client here.
Reply
#30
Ok so I managed to find the log file for xbmc and it's not telling me anything about the upnp server except that it's started. I also did a netstat before and after I enable the UPNP server and the only port that xbmc seems to be using for the UPNP server is TCP port 54683. The port I see on 127.0.0.1 (see bellow) is for the event server which is suppose to be on the loopback interface correct?

I did a TCP dump for multicast from another machine on my network and I am not seeing UDP from my xmbc system.

root@nas:~# netstat -anp| grep -i xbmc
tcp 0 0 0.0.0.0:54683 0.0.0.0:* LISTEN 10470/xbmc.bin
udp 0 0 0.0.0.0:1900 0.0.0.0:* 10470/xbmc.bin
udp 0 0 127.0.0.1:9777 0.0.0.0:* 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957724 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957720 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957701 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957605 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957603 10470/xbmc.bin
unix 3 [ ] STREAM CONNECTED 1957593 10470/xbmc.bin


root@nas:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth0
239.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth0
Reply

Logout Mark Read Team Forum Stats Members Help
UPnP only works on localhost (doesn't show up on players)1