Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncmpcpp: Connection Refused #3

Open
cpkirkpat opened this issue Feb 3, 2024 · 1 comment
Open

ncmpcpp: Connection Refused #3

cpkirkpat opened this issue Feb 3, 2024 · 1 comment

Comments

@cpkirkpat
Copy link

cpkirkpat commented Feb 3, 2024

I'm having an issue establishing a connection between ncmpcpp inside wsl and mpd inside windows. Some info:

Windows:
OS Name Microsoft Windows 11 Enterprise
Version 10.0.22631 Build 22631

WSL:
OS: Arch Linux on Windows 10 x86_64
Kernel: 5.15.133.1-microsoft-standard-WSL2

I have mpd running in a command prompt:
c:\mpd>mpd C:\mpd\mpd.conf

The only error, which I think isn't causing the issue is:
decoder: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg

I can confirm that mpd is listening and is able to accept connections with this test on WSL:

[conor@conor-pc ~]$ nc 10.69.69.69 6600

OK MPD 0.23.5

Yet when I run ncmpcpp It says
ncmpcpp: Connection refused
in the lower left.

Here is my ncmpcpp config file

mpd_host "10.69.69.69"

mpd_port "6600"

media_library_primary_tag = album_artist

For extra troubleshooting I have tried disabling my windows firewall completely, to no avail. I don't think this is a firewall issue though since I can netcat directly to the listening mpd instance in Windows and it accepts the connection.

@zX3no
Copy link
Owner

zX3no commented Aug 14, 2024

Sorry for the late reply, this might not still be relevant to you, but I thought I would leave a reply anyway.

First, I would try skipping ncmpcpp's config file and just run ncmpcpp -h 10.69.69.69

If that doesn't work, I would look into the mpd log files at C:/mpd/mpd.log, see if they say anything.

You can use tail /mnt/c/mpd/mpd.log from within Arch or just open the file normally.

It might also be worth installing and testing mpd from within Arch, just to double check that ncmpcpp is working correctly.

pacman -S mpd
mpd
ncmpcpp -h 127.0.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants