mediatomb ports

Help
2007-05-27
2013-05-30
  • Hi All,

    I just started playing around with mediatomb: entirely because of the recent PS3 firmware update that lets it function as a UPnP client.  I don't have much to say about it except that it was fairly easy to install and configure on my Fedora Core 6 server, but my PS3 can't find the damn thing. :(  I already know about the recent patch to make files play properly on the PS3 - that's not what I'm enquiring about.

    I'm using ipcop as my firewall.  I have a Green network (wired LAN), and a Blue network (wireless).  Green can access anything on Blue, but Blue can't access anything on Green, except get out to the Internet.  My PS3 is connected wirelessly to Blue.  mediatomb is on a server in Green. I have to open DMZ pinholes from Blue to Green to give clients on Blue access to services on Green.

    I created Blue -> Green pinholes for ports UDP:1900 and TCP:55980 (that's the port I used in config.xml). When I scan for media servers on the PS3, it doesn't find anything.  I know mediatomb is running because I tested the Cidero UPnP client from a Linux PC on the Green network - it found the mediatomb server instantly.

    I'm fairly certain the PS3 can't find the mediatomb server because of my firewall.  I'm either not configuring the firewall correctly, or UPnP isn't designed to work across subnets.  Does anyone have any pointers or suggestions?  Is what I'm trying to do even possible?

    Here again is the network layout:

    PS3: 192.168.2.102  [blue]
    mediatomb: 10.19.75.200  [green]

    DMZ pinholes, blue -> green:

    Source          DST           Port
    ---------------------------------------
    192.168.2.102   10.19.75.200  UDP:1900
    192.168.2.102   10.19.75.200  TCP:55980

    BTW, I've tried twonkymedia as well, and I had the same problem.  Interestingly, I was able to stream mp3s from the twonky server with my PSP.  The RSS URL I used was http://10.19.75.200:9000/rss.

    Regards,

    Ranbir

    --
    Kanwar Ranbir Sandhu

     
    • Jin
      Jin
      2007-05-27

      Hi,

      from what I can tell - your MediaTomb server is running on the wrong network interface. So even if the firewall rewrites your TCP and UDP packets - you still get the wrong information inside the SSDP packets: the information there is filled out by the application, so your firewall does not know anything about it. And the application does not know anything about your firewall... :)

      I hope that helps,
      Jin

       
      • Well, here's the log from a server restart:

        2007-05-27 13:29:03    INFO: Loading configuration from: /etc/mediatomb/config.xml
        2007-05-27 13:29:03    INFO: Checking configuration...
        2007-05-27 13:29:03    INFO: Config: option not found: /server/servedir using default value:
        2007-05-27 13:29:03    INFO: Config: option not found: /server/storage/port using default value: 0
        2007-05-27 13:29:03    INFO: Setting filesystem import charset to ISO-8859-1
        2007-05-27 13:29:03    INFO: Setting metadata import charset to ISO-8859-1
        2007-05-27 13:29:03    INFO: Config: option not found: /server/ip using default value:
        2007-05-27 13:29:03    INFO: Config: option not found: /server/bookmark using default value: mediatomb.html
        2007-05-27 13:29:03    INFO: Config: option not found: /server/presentationURL using default value:
        2007-05-27 13:29:03    INFO: Config: option not found: /server/presentationURL/attribute::append-to using default value: none
        2007-05-27 13:29:03    INFO: Config: option not found: /server/upnp-string-limit using default value: -1
        2007-05-27 13:29:03    INFO: Config: option not found: /import/virtual-layout/script/attribute::charset using default value: UTF-8
        2007-05-27 13:29:03    INFO: Config: option not found: /server/custom-http-headers using default value:
        2007-05-27 13:29:03    INFO: Config: option not found: /import/library-options/libexif/auxdata using default value:
        2007-05-27 13:29:03    INFO: Config: option not found: /import/magic-file using default value:
        2007-05-27 13:29:03    INFO: Configuration check succeeded.
        2007-05-27 13:29:04    INFO: Initialized port: 55980
        2007-05-27 13:29:04    INFO: Server bound to: 10.19.75.200
        2007-05-27 13:29:05    INFO: MediaTomb Web UI can be reached by following this link:
        2007-05-27 13:29:05    INFO: http://10.19.75.200:55980/

        That tells me mediatomb is bound to the correct interface, and therefore is using the right IP. However, should I be looking at setting some of those config options that I haven't set?

        Isn't opening ports supposed to be enough?

        Regards,

        Ranbir

        --
        Kanwar Ranbir Sandhu

         
    • Jin
      Jin
      2007-05-27

      That looks OK indeed, so the problem is not what I suspected. Opening ports should actually be enough,maybe also open TCP 1900 in additon to UDP...

      Well, the only thing I can suggest is, to sniff around with wireshark to see what's really going on...

      Greetings,
      Jin