Unable to connect to Music Player Daemon

General discussion about netjukebox
Locked
tdo83
User
Posts: 1
Joined: Fri Nov 16, 2012 8:03 am

Unable to connect to Music Player Daemon

Post by tdo83 »

Hello,

I have successfully installed netjukebox on the webserver that hosts my website; however, when I click on the "playlist" tab, I get this error "Failed to connect to: 127.0.0.1:6600 Connection refused." I have done a lot of research but can't seem to find a solution. Please advise!

Thanks!
Attachments
mpd error.jpg
mpd error.jpg (16.38 KiB) Viewed 25725 times
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Unable to connect to Music Player Daemon

Post by wbartels »

netjukebox can be used to stream music or use it as a music server.
The playlist function is only working when used as a music server.

To get the music server working one of the following players must be installed on the same server as netjukebox and configured with the web interface config > Player profile:
  • MPD (music player deamon)
  • Winamp + httpQ plugin
  • VLC + HTTP remote control interface (no playlist support yet)
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Unable to connect to Music Player Daemon

Post by wbartels »

cargilcm
User
Posts: 3
Joined: Wed Sep 05, 2018 5:04 pm

Re: Unable to connect to Music Player Daemon

Post by cargilcm »

@wbartels, have you encountered this issue with the sourceforge "demo instance?" I have the web player profile set up on my web server and am getting the same error it appears:

Code: Select all

Failed to connect to host: localhost:6600    connection refused 
File: ../include/play.inc.php  Line: 134
I've looked at the code for mpd in the play file but I have limited familiarity with using sockets and streams. I was not able to get the streaming to work on my windows phone, while the HTML5 audio demo at w3c does work on this device. In trying to understand mpd it looks like my server does not have that program available:

Code: Select all

-bash:   mpd:  command not found
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Unable to connect to Music Player Daemon

Post by wbartels »

MPD or Music Player Daemon is intend for local or LAN playback.
You also have to install MPD, see https://www.musicpd.org and http://www.netjukebox.nl/install.php for more detail.

Here is in a nutshell how I setup netjukebox:
On my Ubuntu Server at home I have installed MPD and connected it with a toslink to my DAC/Preamp.
I use my PC or iPad to control MPD with the netjukebox web interface.
If I'm away from home/living-room I use the streaming part of netjukebox.

I also have setup netjukebox on sourceforge.net (demo.netjukebox.nl) to limit bandwidth.
This is a setup without MPD.

I hope this helps,

Willem
Locked