Donnerstag, Mai 15, 2008

control mpd from remote client

To control mpd from a remote client, mpd needs to allow remote connections. Disable bind_to_address in /etc/mpd.conf. Or set it to "any".

On the client tell mpc with the shell variables MPD_HOST and MPD_PORT how to connect to mpd.

Restricting access to only a view users in the local network is a problem. The mpd password is sent in the clear. If there is only one user per IP address you could use multiple bind_to_address entries or add iptable rules. Otherwise you should not allow remote access to mpd and only allow login via SSH and control mpd with the local mpc.