2012-08-26

MPD remote and LAN

My fist tries with mpd were limited to local use with a dedicated machine, and web access using client175 (see previous post). Now, since I also have an android phone, I wanted to control the music from there.

I tried to use MPDroid to do this. The setup is simple, just requiring server address and port (eventually login if necessary with your config). However, MPDroid could not connect...

It simply requires a small change in the mpd configuration:
bind_to_address "localhost"
should be changed to:
bind_to_address "0.0.0.0"
or just commenting out the bind_to_address line from the config.

Now I can control the music from my phone, turning up the volume when it should be loud :)

As side note, writing the server address instead of 0.0.0.0 (or commenting out) will allow mpd to work through every client able to connect to the server address, but disable localhost connections. In my case, I had "connection refused" when using mpc. No specific address allows both local and remote access.

4 comments:

  1. Just came across this and it saved me hours of stupid messing about. Hanks for spelling out the obvious to me :)

    ReplyDelete
  2. You have done a amazing job with you website UK RDP

    ReplyDelete