Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


mconnect on iPhone to play Qobuz via Moode
#1
Yesterday, for the first time, I made a test with Qobuz plaied by Moode (8.3.8). I used the Bubble_upnp app on my Android phone, everything worked immediately without any problem.

I don't use Qobuz but I set it up for a friend. Today we tested a new dac at his place, so I configured the same pi4 under his wifi network, static IP. It works fine accessing the Moode IP both via his Mac and iPhone. Then, as Bubble upnp isn't apple available, we installed the mconnect app on the smartphone. It sees the "moode qobuz" UPNP created on Moode... but then it's not possible to play. Because of the error you can see at attachment. It seems to be related somehow to proxy. But I don't know nothing about that. What would you suggest us to check/modify? Thanks!


Attached Files Thumbnail(s)
   
Reply
#2
Not seen here.

Turned on the UPnP client for MPD on my moOde player (service type=UPnP A/V). 

Installed mconnect Player Lite on an iPhone SE. 

Browsed Qobuz and selected an album at random. 

Here's what my moOde player is displaying as it plays

   

Regards,
Kent
Reply
#3
Hi @fralippo , what did change from the day before is the network. When you play Qobuz via the mConnect Qobuz plug-in, your phone with the mConnect app becomes the proxy server for Qobuz, meaning that Moode will fetch the Qobuz stream from your iPhone mConnect App (local IP 192.168.1.7 as per your screenshot), which acts as a proxy to Qobuz cloud service. This will of course work if the network allows your Pi and iPhone to communicate.
I think the issue comes from the network communication between iPhone and the Pi running MoodeAudio.
From your screenshot of the browser, it seems like you have a VPN service that you are using for your devices (see the key on top). I am not sure if the iPhone is also connected through VPN; try to make sure that your iPhone and your Pi are on the same network, no VPN, and that they can communicate to each other.

I hope this helps.

Sergiu
Reply
#4
Good catch, @bsergiu

I didn't notice the key icon. Even so, I should have made the same observations you did about how mconnect/QoBuz work and the need to have the iPhone and the moOde player on the same net/subnet. Your advice in the final sentence is spot on.

In my case, enabling VPN access to the Internet on my iPhone (using HotSpotShield*) did not affect my LAN connections and mconnect --> moOde player still works. Of course, my network configuration may be completely different from the OPs.

Regards,
Kent


*displays a little "VPN" icon rather than a key icon.
Reply
#5
@TheOldPresbyope - Thanks for your reply! I have also tried to "dial-in" through mobile 5G network and my own Fritz!Box VPN into my home network and it works as well. I just thought that this may be a hint/cause for potential network issues, as this happens to me many times by mistake, with airPlay Smile - my iPhone is in GhostVPN and not in my home net anymore Smile

@fralippo does it work now ?
Reply
#6
At my friends place the Pi was set up under his wifi network, static IP. Both via his iphone and my android smartphone (or his desktop mac) we were able to reach that address and see Moode... obviously same wifi network. The Pi is connected to a USB dac and it work and sounds great. The playback can be controlled by the iphone, my android pixel phone, and the desktop mac. No problem.
UPNP cliend for MPD was on and was immediately seen both by Bubble upnp on my Pixel and mconnect on his Iphone. Simply we always get the error at my first post.

I don't know if the iphone has a VPN. The picture above is a screenshot of my pixel, which always has his VPN on (free and stock on the Pixels). At my house the day before with bubble upnp the VPN on the pixel was surely on, no doubts, the key is always there.

Unfortunately my friend is an hour by car away from me, maybe I'd go there again in a week or so. He can't do these kind of things alone. In the meanwhile he's listening music from a usb hd connected to the pi4.

Thank you for your support. But there's something else to still be discovered...
Reply
#7
One "detail" I noticed is that the fixed IP given to Moode is 192.168.1.9 and in the screenshot I can see 192.168.1.7
I don't know if this could be normal or not unfortunately.
Reply
#8
(02-24-2024, 05:02 PM)fralippo Wrote: One "detail" I noticed is that the fixed IP given to Moode is 192.168.1.9 and in the screenshot I can see 192.168.1.7
I don't know if this could be normal or not unfortunately.

What you see in the screenshot should have been the IP of the iPhone since it, or rather the mconnect app on it, is the proxy media server for the Qobuz tracks.

Having looked more closely at the URL, however, I realize there's something screwy. I don't use UPnP in my system and haven't tested any of moOde's UPnP capabilities in a long time but now that I work on your problem the details are coming back to me.

Instead of

http://192.168.1.7:57645/proxy/qobuz/6B7...roxy=false

the URL should have been simply

http://182.168.1.7:57645/qobuz/6B7E.....flac

In other words, no  mention of "proxy".

(For that matter, the port number 57645 seems rather high to me too. In my test, by comparison, it was 19999. This may be a non-issue but ....)

Bottom line: it feels like there might indeed be some network proxy nonsense going on but I'm mystified as to what it is.

As an aside, I'm curious why you or your friend chose to set a fixed IP for the moOde player. While I don't think this is related to the subject at hand, doing so is not required to make moOde work. Depending on how you did it (setting a fixed IP in moOde versus reserving an IP in the LAN router's DHCP server for the moOde player's MAC address) you might run into issues.

Regards,
Kent

PS - recent releases of moOde include a version of the UPnP Client for MPD which supports Qobuz through a plugin of its own. I don't recommend it, but if you or your friend want to explore, go to m>Configure>Renderers>UPNP settings (under UPnP Client for MPD) and enter the credentials. Also enable DLNA in m>Configure>System. Now mconnect can browser moOde's "moOde UPNP-mediaserver" (or whatever you named it), one of the entries under Local Server.


The Browser experience in this mode is terrible in my opinion.


PPS - the UPnP Client for MPD is implemented in upmpdcli and you can look at its documentation at https://www.lesbonscomptes.com/upmpdcli/index.html
Reply
#9
Hi @fralippo,

To summarize how it works: The mConnect Qobuz plugin on your iPhone (192.168.1.7) connects to the Qobuz service, it fetches e.g. the list of tracks and displays it locally in the App as a list of songs. When you choose one and press Play (having your Moode Pi as renderer), the mConnect on your iPhone fetches the stream from Qobuz on its own AND then it serves it to your Moode on its own. mConnect acts like the "Qobuz server" for your Moode. It does so by telling the MPD from Moode to "play" a URL, i.e. the URL http://192.168.1.7:57645/proxy/qobuz/6B7...roxy=false. This URL is created by mConnect App and also served from there. Note the IP, it tells to Moode to Play the stream from your mConnect App from the iPhone. Yes, the mConnect is not "just" an app, it has a upnp server inside, in order to be able do that.

This is the reason why, if you look at Moode from any device (Mac, your phone, Grandma's laptop, ...), Moode will tell you which stream is playing, i.e. the Qobuz stream from the iPhone mConnect App: http://192.168.1.7:57645/proxy/qobuz/6B7...

Thus, as @TheOldPresbyope mentioned as well, this is normal.

Now, what happens is that when Moode tries to fetch the stream that it has been told to, http://192.168.1.7:57645/proxy/qobuz/6B7... it cannot. As mentioned above by @TheOldPresbyope , I can confirm that the URL here (I am using also mConnect on the iPhone and an external DAC via USB on my own here) does NOT contain the "proxy" neither in the path nor as the url parameter (at the end, after the question mark). This URL is created by mConnect itself, and MPD is asked to play it; mConnect adds this proxy stuff to it, I do not see yet why.

Here is a couple of more things that I would try: (Update ! see next post! )

- First, check on the iPhone that indeed it has the IP address 192.168.1.7.
- start mConnect from the iPhone and go into the Qobuz plug-in, open it and browse some music. Press Play on some song and check the URL that is failing on Moode via browser. Note down the failing URL (copy if you can)
- While mConnect still open and inside the Qobuz plugIn,  open a new browser tab on the Mac and open the failing URL from the previous step. Check if it is failing (most probable). If not, your browser should start playing that song.
- Assuming it was failing before, change the URL by removing the /proxy from the path and ?proxy=false at the end and try opening again. Check if it plays.

What happens is that mConnect is adding the "proxy" stuff to the URL that it generates and we no not understand why. Either it is behind a VPN and that's why, or for other reasons. I would suggest asking mConnect folks as well, under which circumstances are they doing that.

The other option - as mentioned above - is to use the direct Moode connector to Qobuz. I do have exactly the same Set-up at my home, with an iPhone + Pi + Michi via USB Audio 2.0, with both the native mConnect PlugIn (which I do not use often) and the upmpdcli (where I helped fixing the bug to connect to Qobuz), even before it has been included into newest Moode versions.With the newest version is easy to set-up, you have the key points above.

To be honest, I personally like to use the upmpdcli way, for several reasons. 1) In this way, the stream would go from Qobuz to your PI directly, not using the iPhone as a proxy. This will give you less network hops (the iPhone is no longer in the streaming chain) 2) better gap-less playing experience (with mConnect Qobuz plug-in, gapless playing leads often to frozen player, both on my iPhone 14 Pro as well as on the iPad 10,2). and 3) No crashes of the App (actually freezing) However, you should be prepared for the less good user experience, as browsing Qobuz will look like browsing folders.

IMHO it is worth a try, and you'll most probably get rid of the network problems that you had so far.
Reply
#10
Important update @fralippo : I did install Bubble Upnp on an Android phone. And surprise, the URL looks like:

http://192.168.178.113:57645/proxy/qobuz...roxy=false

This is exactly like the one you are posting. The mConnect generated URL looks different, i.e. like we have explained above.
It seems like you are trying to play from the Bubble Upnp still. This may happen if you are going to the Moode browser interface and press "play" on a song that is listed in the history queue while it has been played from Bubble Upnp - as this would still hold the played URL. Just a possible explanation.

Please try to control your player only from the mConnect app and play some fresh tracks from the mConnect app, first on the Phone itself to see if it works , then choosing the Moode as media renderer.

I hope this helps.
Reply


Forum Jump: