Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Can't connect to UPnP server from outside LAN

  1. #11
    Administrator
    Join Date
    Feb 2014
    Posts
    424

    Re: Can't connect to UPnP server from outside LAN

    When manually specifying UPnP servers, the specified URL should be pointing at a UPnP device description XML.

    With foo_upnp, the URL looks like this: http://<login>@<host>:<port>/DeviceDescription.xml

    When foobar2000 mobile is fed a URL without the /DeviceDescription.xml and fails to load it, it proceeds to try one with /DeviceDescription.xml appended. However, for mysterious reasons, this fails for some people. The issue is being investigated.

  2. #12

    Re: Can't connect to UPnP server from outside LAN

    Hello
    I only made an account for this post, so...

    foobar mobile app is searching for the xml file with the configuration. So i connected with the foobar desktop application and wireshark showed that the url to the xml file is SuperMediaServer/DeviceDescription.xml (In the combination with minidlna and bubbleupnp, not sure if this is always the same)
    So to connect with foobar mobile use this format: http://user:pw@ip_or_hostname:58050/...escription.xml.
    Proof: https://i.imgur.com/szLvnN1.png, no wifi connected

  3. #13

    Re: Can't connect to UPnP server from outside LAN

    Hello

    I only made an account to post this
    Connect with foobar desktop and use wireshark to get the url of the xml file. On bubbleupnp it is (in combination with minidlna, i am not sure if this can be different with other services) /SuperMediaServer/DeviceDescription.xml.
    So to connect use http://user:pw@ip_or_hostname:58050/...escription.xml

    Proof: https://i.imgur.com/szLvnN1.png

  4. #14

    Re: Can't connect to UPnP server from outside LAN

    Hello

    I only made an account to post this
    Connect with foobar desktop and use wireshark to get the url of the xml file. On bubbleupnp it is (in combination with minidlna, i am not sure if this can be different with other services) /SuperMediaServer/DeviceDescription.xml.
    So to connect use http://user:pw@ip_or_hostname:58050/...escription.xml

  5. #15

    Re: Can't connect to UPnP server from outside LAN

    I'm able to connect using the above method (w/ BubbleUPnP and MediaMonkey) but I get an error whenever I try to play a track ("Playback Error: Network Error On: [URL]"). Looks like the URL listed doesn't have a username / password, if that matters. Any idea why this might be the case and anything I can do to fix it?

  6. #16

    Re: Can't connect to UPnP server from outside LAN

    Hey, I have the exact same problem... Have you solved ?

  7. #17

    Re: Can't connect to UPnP server from outside LAN

    I can confirm this is a BubbleUPNP issue, but I can&*8217;t suggest a method to fix it.
    BubbleUPNP seems to fail to put the external hostname on streams and instead uses the internal LAN IP.

    I can also confirm that user/password are NOT requires for media (stream) files. BubbleUPNP uses &*8220;security through obscurity&*8221; and streams look like this:
    http://192.168.0.56:58050/stream/aud...23f00aa4d4.mp3

    When I plug the URL above inside my internal LAN, the track plays. When I swap the IP for the hostname, the track ALSO plays.

    I&*8217;m using FB2K on iOS, connected remotely to BubbleUPNP running on Raspberry PI, alongside MinimServer.
    I successfully added and connected by using the same string other users confirmed:
    http://userass@host:58050. The connection works and I can browse my library.

    However &*8211; when I attempt to play any track, FB2K &*8220;blinks&*8221; an error confirming that the hostname has been swapped by the LAN IP&*8230;
    I know the issue must be with BubbleUPNP, because none of the other components (the mobile phone, MinimServer) are &*8220;aware&*8221; of the LAN IP. BubbleUPNP is supposed to be that &*8220;bridge&*8230;&*8221;

    I tried looking into the configuration.xml file, to see if there are perhaps parameters I can influence outside the web portal of BubbleUPNP, but couldn't find anything useful (for this purpose...)

  8. #18

    Re: Can't connect to UPnP server from outside LAN

    I actually DID find a configuration.xml parameter. It was set to false by default (as expected).

    <useNumericIpInStreamURL>false</useNumericIpInStreamURL>

    Changing it from false true and then back to false (with server restarts in between) did not change the outcome: BuubleUPNP still refuses to reflect the hostname in the stream.

  9. #19

    Re: Can't connect to UPnP server from outside LAN

    Two remote experiments to connect to the same BubbleUPNP server:
    1. When using foobar2000 on iOS, the internal (LAN) IP is given to FB2K on the stream address, which is obviously useless in the remote connection...
    2. When using BubbleUPNP (Android), connecting to the SAME server, the correct (hostname) stream is given.

    So...despite what I've said before, assuming that BubbleUPNP is the culprit, I now think there's something "in the protocol" between the client (FB2K) and the BubbleUPNP server, which causes the LAN IP to be given back, instead of the hostname...

  10. #20

    Re: Can't connect to UPnP server from outside LAN

    Quote Originally Posted by vansover View Post
    Two remote experiments to connect to the same BubbleUPNP server:
    1. When using foobar2000 on iOS, the internal (LAN) IP is given to FB2K on the stream address, which is obviously useless in the remote connection...
    2. When using BubbleUPNP (Android), connecting to the SAME server, the correct (hostname) stream is given.

    So...despite what I've said before, assuming that BubbleUPNP is the culprit, I now think there's something "in the protocol" between the client (FB2K) and the BubbleUPNP server, which causes the LAN IP to be given back, instead of the hostname...

    I'm not sure BubbleUpnp is to blame.
    I have the same issues as you when using foobar2000 mobile - it's trying to use the internal ip address.
    However when i use foobar2000 on Win10 over vpn, it plays just fine - it uses the public hostname.
    Even when not on a VPN i can see the tracks properties look like this: http://<mypublichostname>:8081/stream/audio/1ade778424f35cacf17e7959ea986311.ogg

    So i believe fb2k mobile is just picking up the wrong field - internal ip rather than host

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •