Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

need help connecting MPD Client to MPD
need help connecting MPD Client to MPD
need help connecting MPD Client to MPD Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 12th January 2016, 06:48 PM   #1
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Default need help connecting MPD Client to MPD

I've made it through the process of setting up MPD on my Ubuntu machine to play to the ALSA Loopback device. From there I am streaming the audio, etc.

I installed an MPD Client (Gnome MPC) on the server and everything works great. Now I would like to use (another) cleint on my Android device (a tablet) to control playback on the server. I assume that is how it works, e.g. that the Android client is not streaming the music from the server to the Android and playing it there... So I installed first mpc and then MPDroid on my Android tablet and tried to get them to work as cleints. In both cases, the client cannot connect to the MPD instance on the server.

I have looked around the web for help and found various suggestions on edits to the mpd.conf file. These included setting bind_to_address to "localhost" or "127.0.0.1" and port to "6060", which seems to be the default port. I also opened port 6060 in my iptables to incoming tcp. On the clients I set up the MPD server IP (use the actual IP address of it, which is static) and port = 6060 but this has not resulted in connection.

I know that there are some users of MPD with various clients on this forum. Please help me figure this out or point me to resources that might help me. Thanks!
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 12th January 2016, 08:06 PM   #2
vandekennedylaan is offline vandekennedylaan
diyAudio Member
 
Join Date: Sep 2010
Location: Amsterdam
In my settings it is port 6600. Try that.
  Reply With Quote
Old 12th January 2016, 08:32 PM   #3
Ben Mah is offline Ben Mah  Canada
diyAudio Member
 
Join Date: May 2012
Location: Vancouver
need help connecting MPD Client to MPD
I also use port 6600. My server has a static IP address so I also set my client to use that. My mpd.conf has the port and network addresses commented out, and my client connects with no problem.
  Reply With Quote
Old 12th January 2016, 08:49 PM   #4
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Whoops, that was it. I'm a bit embarrassed... but thanks to a bad cold I was convinced I should be using port 6060. Must read more carefully... Now we are up and running!

Switched to the Droid MPD Client. Nice! It's definitely worth plunking down $1.38...
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 12th January 2016, 09:13 PM   #5
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by CharlieLaub View Post
I have looked around the web for help and found various suggestions on edits to the mpd.conf file. These included setting bind_to_address to "localhost" or "127.0.0.1"
Such setting tells MPD to listen on localhost/127.0.0.1 only. I.e. it will accept only local connection from clients running on the machine. You need the exact opposite - listening on external IP address. Best is to keep the default value (listen to any interface).

Quote:
and port to "6060", which seems to be the default port.
MPD default port is 6600 Ubuntu Manpage: mpd.conf - Music Player Daemon configuration file

The easiest way of testing TCP servers is to use telnet

telnet IP_ADDRESS PORT

You will see immediately if there is a service listening.
  Reply With Quote
Old 13th January 2016, 02:00 AM   #6
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Just for posterity sake I thought I would post what I am using for settings in ALSA and MPD. In my setup, I want the player to send output to an ALSA loopback (installed with the snd-aloop module) so that I can route it to, and then through, another application.

A list of available ALSA devices looks like this (via aplay -l):
Quote:
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 7/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
In MPD I have the following audio-related configuration settings:
Quote:
audio_output {
type "alsa"
name "ALSA Output"
device "default"
format "48000:16:2"
auto_resample "no" # disables alsa resampling
mixer_type "software"
}

samplerate_converter "0" #Best Quality Sinc Interpolator

audio_buffer_size "512" #output buffer size in kB
Finally, I have an .asoundrc file in my home directory (used by ALSA) containing the following:
Quote:
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}
Before I set up the .asoundrc file that specifies the defaults I could not get volume control working in MPD (it would always be at 100%). I may have also been specifying MPD to use the ALSA device hw:0,0 (this is the loopback in my case) at the time. I found a suggestion on the web to instead tell MPD to use the "default" device, and then to specify that along with the default control in the .asoundrc file as I have shown above. That worked like a charm.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 13th January 2016, 07:46 AM   #7
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
You may want to use fixed card names instead of unstable card indices. 0 = Loopback , 1 = PCH
  Reply With Quote
Old 13th January 2016, 03:37 PM   #8
ezavalla is offline ezavalla  Argentina
diyAudio Member
 
ezavalla's Avatar
 
Join Date: Dec 2008
Quote:
Originally Posted by CharlieLaub View Post
Switched to the Droid MPD Client. Nice! It's definitely worth plunking down $1.38...
I'm using Mupeace, it's free and a really good application. Perhaps you can try it..
  Reply With Quote

Reply


need help connecting MPD Client to MPDHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Portable mpd player Jamh Class D 39 27th December 2014 09:54 PM
Linux + MPD player + dsp crossover via ecasound jplesset PC Based 11 15th September 2013 11:24 PM
mpd puppy didnt like power outage Deafuser PC Based 2 15th September 2013 10:36 AM
Ubuntu Toram Mpd kurt10 PC Based 0 12th December 2012 07:46 PM
Trouble getting MPD db to update wlowes PC Based 3 29th May 2012 07:31 AM


New To Site? Need Help?

All times are GMT. The time now is 08:10 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio
Wiki