Hi James On 16/09/2020 à 19:28, James Klaas wrote : > […] > root@myhost:~# service mpd stop > root@myhost:~# service mpd start > root@myhost:~# curl http://192.168.144.122:8000 > curl: (7) Failed to connect to 192.168.144.122 port 8000: Connection refused > > I tried other commands you mentioned: > > […] > root@myhost:/etc/cron.weekly# lsof -Pan -p 10880 -i > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > mpd 10880 mpd 4u IPv6 114131524 0t0 TCP *:6600 (LISTEN) > > root@myhost:/etc/cron.weekly# ss -antlp | grep mpd > LISTEN 0 5 *:6600 > *:* users:(("mpd",pid=10880,fd=4),("systemd",pid=1,fd=108)) > > I greped for mpd since the list of services is quite large. I wanted > to check there was nothing conflicting on port 8000: > > root@myhost:~# ss -antlp | grep 8000
Well it looks like MPD is listening on :6600 only (is it playing something?).
> I don't see anything odd in the logs, when set to verbose:
>
> Sep 14 16:12 : zeroconf: No global port, disabling zeroconf
> Sep 14 16:12 : state_file: Loading state file /var/lib/mpd/state
> Sep 14 16:13 : client: [0] opened from 192.168.47.122:57198
> Sep 14 16:13 : client: [0] malformed command "GET / HTTP/1.1"
> Sep 14 16:13 : client: [0] closed
> Sep 14 16:20 : client: [1] opened from local
> Sep 14 16:20 : client: [1] process command "outputs"
> Sep 14 16:20 : client: [1] command returned 0
> Sep 14 16:20 : client: [1] closed
> I tried adding port 8000 to /lib/systemd/system/mpd.socket under the
> "[Socket]" section and ran "systemctl daemon-reload". But that seems
> to only expose the socket to port 8000.
>
> Is another section needed in /lib/systemd/system/mpd.socket to open up
> 8000 to the httpd server in mpd?
Systemd socket activation is meant to launch MPD "on demand" when a client
tries to
connect on port 6600. IMO, you don't need to add 8000 here.
HTTP output is set in the conf, something like:
---- /etc/mpd.conf -------8<-------------------
audio_output {
type "httpd"
port "8000"
enabled "yes"
...
}
------------------------->8-------------------
Also, you need to start playing something for MPD to listen on the HTTPD port.
Please paste your MPD config as well.
k.
signature.asc
Description: OpenPGP digital signature

