The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


MPD: Failed to bind socket: Address already in use
#1
Hello,

I installed moode on a raspberry Z W as described in the setup guide and everything works fine. Only access to mpd server over some clients did not work. I found you, that some clients resolve the hostname to an IPV6 adress of the raspberry. Using IPV6 the access does not work, with IPV4 it works fine.

With some internet help I get to the following error when MPD is started manually (also stopped mpd mannuelly berforehand and check with ps ax):


Code:
pi@MusikBadOG:~ $ mpd --no-daemon --stdout --verbose /etc/mpd.conf
config_file: loading file /etc/mpd.conf
exception: Failed to bind to '0.0.0.0:6600'
exception: nested: Failed to bind socket: Address already in use
afterwards port 6600 is only opnened with V4 and not V6 (check with netstat -l).

/etc/mpd.conf contains the following:
Code:
bind_to_address "any"
port "6600"




Also played around a little bit with /proc/sys/net/ipv6/bindv6only tried 0 and 1 as values, but doesn't change anything.

What can I do to have port 6600 available on IPv4 and IPv6 at the same time?`
Thanks!
Reply


Messages In This Thread
MPD: Failed to bind socket: Address already in use - by mohel - 01-18-2020, 01:08 PM

Forum Jump: