# Can't connect MPD & Can't use spotify pimusicbox

**URL:** <https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047>\
**Category:** Misc\
**Created:** [November 21, 2017, 10:21am UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047 "2017-11-21T10:21:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Roosen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/peter_roosen/32/767_2.png) [@Peter\_Roosen](https://discourse.mopidy.com/u/Peter_Roosen)\
**Post date:** [November 21, 2017, 10:21am UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/1 "2017-11-21T10:21:00Z")

</div>

Hello there,

Let me first tell you guys my concept of what I’m working on, because maybe you guys have better approaches then what I’m trying right now. This is my graduation project for my bachelor of industrial design btw.

I want to make a physical musical suggestions device, now and then it will give you a musical suggestion based on your spotify usage. (bassically a physical discover weekly) It will give this every now and then and will use machine learning to detect what moments should have the highest chance of receiving a musical suggestion. This suggestion will have to be played through physical interaction. That is my concept in short.

Now to my problem, I thought about trying out mopidy-spotify to be able to wizard of oz my concept and user test it, but I cannot get the mpd to work. It will give the same error on mpdroid wether or not the server is actually running. Connected failed: ECONNREFUSED. I have tried multiple things that have been stated on this forum but I simply can’t make it work.

After that I thought lets make it even easier and use the pimusicbox, to give even less controll in my own hands to fuck things up. Which works, I can use the web interface, but nothing from spotify works on there, I dont have my playlists cant use browse or search.

I hope you guys can help me cause I have been pulling my hairs for the last few days.

With kind regards,  
Peter Roosen a frustrated student

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [November 21, 2017, 2:08pm UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/2 "2017-11-21T14:08:58Z")

</div>

With your normal (non-pimusicbox) Mopidy installation did you set the mpd hostname correctly as per the documentation at [https://docs.mopidy.com/en/latest/ext/mpd/](https://docs.mopidy.com/en/latest/ext/mpd/) ?

Please post your config using `mopidy config` (or `sudo mopidyctl config` if running the service).

---

<div class="post-metadata">

**Author:** ![Peter\_Roosen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/peter_roosen/32/767_2.png) [@Peter\_Roosen](https://discourse.mopidy.com/u/Peter_Roosen)\
**Post date:** [November 21, 2017, 3:53pm UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/3 "2017-11-21T15:53:43Z")

</div>

I think I found the error in mpd, My hostname was wrong installed indeed. But a friend gave me an advice to work with http requests since it’s easier to create myself.

However I have barely any experience with this. Does any of you have any example programs for this? Or approach on how they made physical interaction for mopidy.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [November 21, 2017, 4:49pm UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/4 "2017-11-21T16:49:42Z")

</div>

Take a look at [https://docs.mopidy.com/en/latest/ext/web/#mopidy-api-explorer](https://docs.mopidy.com/en/latest/ext/web/#mopidy-api-explorer)

---

<div class="post-metadata">

**Author:** ![Peter\_Roosen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/peter_roosen/32/767_2.png) [@Peter\_Roosen](https://discourse.mopidy.com/u/Peter_Roosen)\
**Post date:** [November 21, 2017, 5:19pm UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/5 "2017-11-21T17:19:07Z")

</div>

I have actually been looking at that all day tbh, but haven’t translated the abracadabra to english yet. I should probably just try and run those examples on there, but it is quite the hasle constantly changing my keyboard and mouse to my pi.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [November 21, 2017, 6:42pm UTC](https://discourse.mopidy.com/t/cant-connect-mpd-cant-use-spotify-pimusicbox/2047/6 "2017-11-21T18:42:20Z")

</div>

If you enable SSH access you can connect to the pi from your normal computer and save yourself that hassle. [https://www.raspberrypi.org/documentation/remote-access/ssh/README.md](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md)
