Difegue / Stylophone

A pretty cool™️ MPD client in .NET. Based on MpcNET.
https://tvc-16.science/stylophone-27.html
MIT License
130 stars 10 forks source link

Unable to connect to local MPD server #9

Closed NovaPhoenix closed 3 years ago

NovaPhoenix commented 3 years ago

Hey! I just found this app looking for a good MPD player on Windows (I too have used that old version of Cantata all this time) but it doesn't seem to be able to connect to my locally hosted MPD server, while Cantata and other clients can. Tested on MPD 0.22 and 0.21 Windows binaries.

Difegue commented 3 years ago

If your MPD server is locally hosted, you're probably running into the issue where UWP apps can't access localhost.
(See https://stackoverflow.com/questions/33259763/uwp-enable-local-network-loopback/33263253#33263253 for a summary.) There is a workaround you can use with checknetisolation which should work:

checknetisolation loopbackexempt -a -n="13459Difegue.Stylophone_zd7bwy3j4yjfy"

I run my MPD server on a different machine so I forgot to mention this issue in the readme. Tell me if it works for you!

NovaPhoenix commented 3 years ago

That worked! Though now I'm having another issue, should I open up a separate GH issue for this? image

Difegue commented 3 years ago

A separate issue would be good yeah, thanks.
I suspect I'll have to try with a windows build on my end to try and repro the issue.

Barbaross93 commented 1 year ago

Unfortunately, that workaround doesn't seem to work for me. Did the App container name change recently? I am running Windows 11 22H2 if that helps.

EDIT

Apologies, I had "localhost" set as the server. It seems that setting it to 127.0.0.1 instead works.