mpd listening on all IPs, accepting only on one

Rumko rumcic at gmail.com
Mon Oct 18 00:19:02 PDT 2010


Matthew Dillon wrote:
> :After some brief testing of latest -master, noticed that e.g. mpd (musicpd)
> :listens on *:6600 (got that info from sockstat(1)), but I could connect to
> :that port on only one IP. localhost (::1 or 127.0.0.1) did not work, but one
> :of the "outside" IPs did. Since I tried ::1, 127.0.0.1, 192.168.0.X and only
> :worked on the last configured IP 10.0.0.X, I guess it only received
> :connections on one IP instead of all.
> :--
> :Please do not CC me, since I already receive everything from these MLs.
> :
> :Regards,
> :Rumko
> 
>     Is mpd using UDP?  I think I may have been able to reproduce an issue
>     with UDP but I'm not sure yet.
> 
> -Matt
> Matthew Dillon
> <dillon at backplane.com>

No, it's using TCP. Output of sockstat when it's working:
Rumko    ncmpc      1275  3  tcp4   127.0.0.1:1068        127.0.0.1:6600
Rumko    mpd        900   3  tcp4   127.0.0.1:6600        127.0.0.1:1068
Rumko    mpd        900   4  tcp4   *:6600                *:*
-- 
Please do not CC me, since I already receive everything from these MLs.

Regards,
Rumko





More information about the Bugs mailing list