PDA

View Full Version : Can't connect to UPnP server from outside LAN



desechable
March 1st, 2017, 09:30 AM
Hello everyone.
As the thread title says, I can't seem to access my desktop UPnP server from my Android phone while on a different network.
I'm using foobar2000 v1.3.11 on Windows 7, I've set up the UPnP server with the BubbleUPnP plugin, and I'm accessing it through foobar2000 mobile v1.0.55 lite, on Android 6.0.
While both devices are on the same network, everything works just fine. But my main goal was to have remote access to my library, so I allowed "Internet access" on the UPnP settings, and added the UPnP server on f2k mobile as the settings suggested:

http://<login>:<pass>@<ip>:<port>/content/psc.mp3
<login> being a user-set name,
<pass> being a user-set password,
<ip> being my public IP address, and
<port> being the HTTP port I chose for UPnP.
But after that I'm lost. Should the server show up automatically on my UPnP servers list on f2k mobile?
I've already forwarded the port on my router and tested to see if it was actually open, everything seems to be in order.
What am I not doing or doing incorrectly?
Thanks.

ep0ch
March 23rd, 2017, 07:53 AM
I don't think fb2k mobile does the authentication which is needed by bubbleupnp.

Fb2k on desktop has separate textboxes for username/password where as the mobile version does not. So desktop works for me, but mobile doesn't.

Hopefully someone will read this and make the change in fb2kmobile :)

SoanoS
May 12th, 2017, 05:06 AM
Well, I believe the issue is not with the Foobar2k app itself.
It is that your router/modem doesn't know what to do with the connection request.
So you want to add a port forward to the router so the router knows to redirect the request to right machine on your LAN.

For example if your server is set up in port 56928,
then you need to add a port forward that states that any traffic to the port is directed to the IP address and port of your server.

The setting is usually under WAN tab and can be called as "Virtual Server" or "Port Forwarding".

Here is an example setup I have on my router:
Incoming IP: leave this blank to accept connection from any IP (but can specify a fixed IP if you have a static IP on your phone, unlikely)
Incoming port range: 56928
Local (server) IP: 192.168.1.4
Local (server) Port: 56928
Protocol: TCP


I hope this helps.

ep0ch
July 21st, 2017, 09:28 AM
It's the mobile app which doesn't appear to do the authentication which bubbleupnp requires.

Like I said, foobar2000 on desktop works fine remotely, i.e. outside of my network.
fb2kmobile does not.

Peter
July 21st, 2017, 10:12 AM
I once used fb2k mobile with BubbleUPnP authentication. You have to enter your BubbleUPnP address formatted as http://user:password@hostname for that to work. If it doesn't work for you, I'll investigate.

ep0ch
July 21st, 2017, 11:30 AM
I have tried:

http://user:password@hostname:8081
https://user:password@hostname:4443

Neither work for me...

Logs say:
Error Porcessing user-specified UPnP server:
XML error, retrying

Thanks

ep0ch
July 21st, 2017, 11:49 AM
It does not work for me, i have tried the following

http://user:password@hostname:8081
https://user:password@hostname:4043

The error is:
Error processing user-specified UPnP server: XML error, retrying...

ep0ch
November 3rd, 2017, 05:46 AM
If it doesn't work for you, I'll investigate.

Hi Peter,
This is still not working when using: http://user: password@hostname:8081

The error is:
Error processing user-specified UPnP server: XML error, retrying...

Thanks

ep0ch
February 19th, 2018, 12:08 PM
has anyone got this working? I am still getting the same error with the latest.
Is there anything I can do to help debug the issue?

Steve Forte Rio
May 12th, 2018, 04:02 AM
I get the same error.

I have set up the UPnP on my hope computer (Wnidows 7 x64, foobar2000 1.4 beta 12)
I configured the port 56923 in my roter for remote access, launched UPnP server at my IP. Now I can connect to ir through internet from another foobar2000@Windows, adding Remote UPnP as http://user:password@myip:56923
It works great with desktop foobar2000. But when I add the same server to foobar2000 mobile, and try to connect from the same IP as foobar2000 desktop, I get this in my home foobar2000 console:


foo_upnp: Denied WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Successful WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Denied WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Successful WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Denied WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Successful WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Denied WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Successful WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Denied WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)
foo_upnp: Successful WAN request (ip: 46.211.27.38, User Agent: foobar2000-mobile/1.x)

and so on...

And the server doesn't appear in foobar2000 mobile.
As I can connect from desktop fooba2000 with same IP - the server and network is set up correctly.
Tried both stable and beta version (Lenovo A606, Android 4.4).

Peter
May 17th, 2018, 08:57 AM
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.

manujedi
June 1st, 2018, 08:09 AM
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/SuperMediaServer/DeviceDescription.xml.
Proof: https://i.imgur.com/szLvnN1.png, no wifi connected

manujedi
June 1st, 2018, 08:12 AM
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/SuperMediaServer/DeviceDescription.xml

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

manujedi
June 1st, 2018, 08:14 AM
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/SuperMediaServer/DeviceDescription.xml

mhendu
October 18th, 2018, 09:04 AM
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?

MarxPall
January 3rd, 2019, 08:18 AM
Hey, I have the exact same problem... Have you solved ?