I had troubles for long time; mpd took hours before I could get it work, for a very simple reason: the default conf does not work. Guys from IRC chan said: (02:06:53) avuton: doublehp: take bind_to_address out of your mpd.conf (02:07:08) avuton: stupid gentoo conf :( After commenting the line, and restarting the server, it worked. Please, change this default setting. And, also put in the ebuild an ewarn about the basic steps to get mpd work; from what I have collected on wikis: as root: * edit /etc/mpd.conf * rc-update add mpd default * /usr/bin/mpd --create-db * /etc/init.d/mpd start * install mpc and/or gmpc as user: * mpc update * mpc add / * mpc play * to get more help, visit http://mpd.wikia.com/wiki/Main_Page These steps are not trivial at all, nor intuitive for a music player that is considered by many as a replacement for xmms, audacious or bmp. I really think that ewarns should tell about these basic steps. I am also compleetely unable to understand how to use PHPmp, but thats an other topic (no gentoo help, /usr/share/doc/phpmp-0.11.0/INSTALL.bz2 not revealant for Gentoo, URL reported in Description not apropriate to get it work on Gentoo). Please also insert main guidelines in enotices for www-apps/phpmp. Good luck.
No, I'm not going to have bind_to_address commented out in default config, as that leaves MPD wide open to access from network. Default config file works fine for non-network usage - only issue is that on ipv6-enabled hosts, it binds to an ipv6 localhost (I believe this is controlled by first localhost entry in /etc/hosts), while mpc looks for ipv4 localhost by default.
I tried again after update to media-sound/mpd-0.14.0_pre20080120 , and accepting the new default conf, with bind_to_address "localhost" #port "6600" root@moon_gen_2:~# /etc/init.d/mpd stop * Service mpd stopping * Service mpd stopped root@moon_gen_2:~# /etc/init.d/mpd start * Service mpd starting * Service mpd started root@moon_gen_2:~# dhp@moon_gen_2:~$ mpc play MPD_HOST and/or MPD_PORT environment variables are not set error: problems getting a response from "localhost" on port 6600 : Connection refused dhp@moon_gen_2:~$ After commenting again bind line, and restarting daemon: dhp@moon_gen_2:~$ mpc play DHP_400.lnk/themes/Disco Rojo Vol.2/08.@ccelerator (Syndicate of L.A.W).mp3 [playing] #1/505 0:00/3:42 (0%) volume: 87% repeat: off random: off dhp@moon_gen_2:~$ I really wonder how to get the default settings work on your box.
(In reply to comment #2) > I really wonder how to get the default settings work on your box. I already explained it in comment #1 - I do not have the ipv6 entry for localhost. Anyway, mpd now has new maintainer, perhaps you can convince him to work around the idiotic localhost resolving in mpc/mpd.