Connecting M.A.L.P. (Android) to MPD (EndeavourOS)

I appeal to the community… Help me connect to MPD using M.A.L.P.
Background…
MPD was installed and launched on EndeavourOS. I installed Cantata, with which I can easily control the playback of music files via MPD. But I want to use M.A.L.P. (Android) for management. And here’s the problem - it doesn’t work at all to connect to MPD on EndeavourOS.
Together with @flyingcakes, we tried to figure it out, but nothing worked.
I don’t know what to do anymore. Internet searches make it clear that people have no problems connecting and managing M.A.L.P. But I can’t do anything :worried:

1 Like

Knowing exactly what you have done so far may help people to perhaps spot where you might have done something incorrect or miss-configured something.

Also, could it be a firewall issue? You may need to open a port or allow a service in your firewall.

The /home/vladimir/.config/mpd/mpd.conf file contains

# For network
binding to the address "0.0.0.0"
#
# And for a Unix socket
#binding to the address "~/.mpd/socket"
#
# This parameter is the TCP port that needs to be assigned
# to the demon.
#
port "8888"

Running a command in the console sudo lsof -i:8888 displays mpd 749 vladimir 10u IPv4 10488 0t0 TCP *:ddi-tcp-1 (LISTEN)
When entering the address and port in M.A.L.P., it reports that the connection is impossible when trying to connect.

I’m not turning it on. In the KDE settings, it is in the “off” position

By running in the console

python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

I can’t connect from the phone at the specified address

1 Like

Does your system date back from the time before EnOS started shipping and enabling a firewall by default? If so, ignore the following.

Otherwise, check:

systemctl status firewalld.service

Strangely, it looks like it’s on

firewalld.service - firewalld - dynamic firewall daemon
     Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; preset: disabled)
     Active: active (running) since Mon 2024-07-29 10:02:29 MSK; 2h 8min ago
 Invocation: 64fb6b40e85d4eb58e59eeae4bd26713
       Docs: man:firewalld(1)
   Main PID: 614 (firewalld)
      Tasks: 2 (limit: 18885)
     Memory: 64.3M (peak: 64.9M)
        CPU: 497ms
     CGroup: /system.slice/firewalld.service
             └─614 /usr/bin/python /usr/bin/firewalld --nofork --nopid
1 Like

And how do I turn it off?

Look into allowing MPD through the firewall.

I think something like the following should do it:

sudo firewall-cmd --permanent --add-port=8888/tcp

sudo firewall-cmd --reload

Restart MPD and check if the issue is resolved.

Check the firewall configuration and make sure that 8888 is shown as allowed:

sudo firewall-cmd --list-all

If you want to temporarily stop the the firewall to test:

sudo systemctl stop firewalld.service

Restart MPD and check if it works.

2 Likes

WORKS! Hooray :star_struck:
Thank you very much :+1: :handshake:

1 Like

You are welcome! Glad you got it working!

Please consider marking the actual post giving the solution as such in order for the thread to be marked as solved and hopefully other users with similar issue to find the solution more easily.

:enos: :wave:t5:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.