OpenWrt Forum Archive

Topic: UpnP problem with ushare - not present in network

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

so i did install the ushare on disk

root@OpenWrt:/etc# ushare
Interface eth0.1 is down.
Recheck uShare's configuration and try again !
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Listening on telnet port 0
Initializing UPnP subsystem ...
UPnP MediaServer listening on 192.168.0.2:49200
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /mnt/sda1/share/filmy
Found 5 files and subdirectories.

as it can be seen on first line eth0.1 is down... but why i am using it all the time as my input (and the only one)  interface towards router

root@OpenWrt:/etc# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:17:31:DC:08:F7
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:403 (403.0 B)

eth0      Link encap:Ethernet  HWaddr 00:17:31:DC:08:F7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22410 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16911 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31685031 (30.2 MiB)  TX bytes:1227746 (1.1 MiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:17:31:DC:08:F7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:407 (407.0 B)

eth0.1    Link encap:Ethernet  HWaddr 00:17:31:DC:08:F7
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22415 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16915 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:31282135 (29.8 MiB)  TX bytes:1137503 (1.0 MiB)

eth1      Link encap:Ethernet  HWaddr 40:10:18:00:00:2D
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10153 (9.9 KiB)  TX bytes:10153 (9.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:17:31:DC:08:F7
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

of course it is not possible to start interface which is already down

root@OpenWrt:/etc# ifup eth0.1 up
/sbin/ifdown: eval: line 1: syntax error: bad substitution
/sbin/ifup: eval: line 1: syntax error: bad substitution

the problem is present for all interfaces:

root@OpenWrt:/etc# ushare
Interface br-lan is down.
Recheck uShare's configuration and try again !
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Listening on telnet port 0
Initializing UPnP subsystem ...
UPnP MediaServer listening on 192.168.1.1:49200
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /mnt/sda1/share/filmy
Found 5 files and subdirectories.

when i am using media sharing from windows it works perfectly that is why i think the problem lays somewhere in openwrt.

I am not using any firewall of any sort.

also did try via starting the /etc/init.d/ushare start with folllowing options:

root@OpenWrt:~# cat /etc/config/ushare
config 'ushare'
        option 'username' 'nobody'
        option 'servername' 'OpenWrt'
        option 'interface' 'eth0.1'
        option 'options' '-x'
        option 'content_directories' '/mnt/sda1/share/filmy'
        option 'disable_telnet' '1'
        option 'disable_webif' '1'
        option 'enabled' '1'

any idea whats up ?

I have ushare running please post "route".

MH

yes sir

root@OpenWrt:/# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0.1
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0.1

connections are

xbox 192.168.0.3      <---> router 192.168.0.1 (cable)
openwrt(wan eth0.1) <---> router 192.168.0.1 (cable)
pc 192.168.0.169      <---> router 192.168.0.1

when i start sharing files in pc (in WMP) they are visible on xbox

(Last edited by macmus on 18 Oct 2009, 01:58)

In your first post seems to be running on port 49200. What does "netstat -an" show.
Have you tried  the port in a web browser "192.168.0.2:49200/web/ushare.html".
Also a few more option. ENABLE_WEB=yes   ENABLE_XBOX=yes.

MH

yes the webinterface works from pc and properly shows  the shared drives.

i have XBOX support enabled with option -x

config 'ushare'
        option 'username' 'nobody'
        option 'servername' 'OpenWrt'
        option 'interface' 'eth0.1'
        option 'options' '-x'
        option 'content_directories' '/mnt/sda1/share/filmy'
        option 'disable_telnet' '1'
        option 'disable_webif' '0'
        option 'enabled' '1'

or i miss somethings ?

i have found on page http://www.dd-wrt.com/wiki/index.php/Us … dia_server

as a prerequisite there is: "UPnP Service" enable under router web interface

what the hell it is ?

Do not know what is going on with your setup but mine shows Xbox starting.
Maybe DLNA mode is on. Try to use config file with the -f instead.
I think you only need libupnp to run.

OpenWrt daemon.notice uShare[963]: Initializing UPnP subsystem ...
Oct 14 20:46:42 OpenWrt daemon.notice uShare[963]: Starting in XboX 360 compliant profile

MH

macmus wrote:

i have found on page http://www.dd-wrt.com/wiki/index.php/Us … dia_server

as a prerequisite there is: "UPnP Service" enable under router web interface

what the hell it is ?

Go into the webinterface -->administration -->system-->software and install and enable "luci-app-upnp"

The discussion might have continued from here.