https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082010-10-18T04:11:14ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=91302010-10-18T04:11:14Zdillon
<ul></ul><p>:After some brief testing of latest <del>master, noticed that e.g. mpd (musicpd)<br />:listens on *:6600 (got that info from sockstat(1)), but I could connect to<br />:that port on only one IP. localhost (::1 or 127.0.0.1) did not work, but one<br />:of the "outside" IPs did. Since I tried ::1, 127.0.0.1, 192.168.0.X and only<br />:worked on the last configured IP 10.0.0.X, I guess it only received<br />:connections on one IP instead of all.<br />:-</del> <br />:Please do not CC me, since I already receive everything from these MLs.<br />:<br />:Regards,<br />:Rumko</p>
<pre><code>Is mpd using UDP? I think I may have been able to reproduce an issue<br /> with UDP but I'm not sure yet.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=91392010-10-18T14:21:39Zrumcic
<ul></ul><p>Matthew Dillon wrote:</p>
<blockquote>
<p>:After some brief testing of latest <del>master, noticed that e.g. mpd (musicpd)<br />:listens on *:6600 (got that info from sockstat(1)), but I could connect to<br />:that port on only one IP. localhost (::1 or 127.0.0.1) did not work, but one<br />:of the "outside" IPs did. Since I tried ::1, 127.0.0.1, 192.168.0.X and only<br />:worked on the last configured IP 10.0.0.X, I guess it only received<br />:connections on one IP instead of all.<br />:-</del><br />:Please do not CC me, since I already receive everything from these MLs.<br />:<br />:Regards,<br />:Rumko</p>
<p>Is mpd using UDP? I think I may have been able to reproduce an issue<br />with UDP but I'm not sure yet.</p>
<p>-Matt<br />Matthew Dillon<br /><<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>></p>
</blockquote>
<p>No, it's using TCP. Output of sockstat when it's working:<br />Rumko ncmpc 1275 3 tcp4 127.0.0.1:1068 127.0.0.1:6600<br />Rumko mpd 900 3 tcp4 127.0.0.1:6600 127.0.0.1:1068<br />Rumko mpd 900 4 tcp4 <strong>:6600 *:</strong><br />-- <br />Please do not CC me, since I already receive everything from these MLs.</p>
<p>Regards,<br />Rumko</p> DragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=91452010-10-19T05:50:38Zc.turner
<ul></ul><p>Rumko wrote:</p>
<blockquote>
<p>After some brief testing of latest -master, noticed that e.g. mpd (musicpd)<br />listens on *:6600 (got that info from sockstat(1)), but I could connect to<br />that port on only one IP. localhost (::1 or 127.0.0.1) did not work, but one</p>
</blockquote>
<p>probably not much help w/r/t 2.6 - but I was able to use gmpc<br />to toggle back btw 10.x & 127.0.0.1 on my workstation</p>
<p>(in case this wasn't tested elsewhere)</p> DragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=91572010-10-22T11:44:56Zdillon
<ul></ul><p>:> :Please do not CC me, since I already receive everything from these MLs.<br />:> :<br />:> :Regards,<br />:> :Rumko<br />:> <br />:> Is mpd using UDP? I think I may have been able to reproduce an issue<br />:> with UDP but I'm not sure yet.<br />:<br />:No, it's using TCP. Output of sockstat when it's working:<br />:Rumko ncmpc 1275 3 tcp4 127.0.0.1:1068 127.0.0.1:6600<br />:Rumko mpd 900 3 tcp4 127.0.0.1:6600 127.0.0.1:1068<br />:Rumko mpd 900 4 tcp4 <strong>:6600 *:</strong><br />:<br />:Rumko</p>
<pre><code>Ok, could you send me the config file you are using for it? I'm<br /> trying to reproduce the environment and will then test connecting<br /> to it.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=91622010-10-24T11:06:33Zrumcic
<ul></ul><p>Matthew Dillon wrote:</p>
<blockquote>
<p>:> :Please do not CC me, since I already receive everything from these MLs.<br />:> :<br />:> :Regards,<br />:> :Rumko<br />:> <br />:> Is mpd using UDP? I think I may have been able to reproduce an issue<br />:> with UDP but I'm not sure yet.<br />:<br />:No, it's using TCP. Output of sockstat when it's working:<br />:Rumko ncmpc 1275 3 tcp4 127.0.0.1:1068 127.0.0.1:6600<br />:Rumko mpd 900 3 tcp4 127.0.0.1:6600 127.0.0.1:1068<br />:Rumko mpd 900 4 tcp4 <strong>:6600 *:</strong><br />:<br />:Rumko</p>
<p>Ok, could you send me the config file you are using for it? I'm<br />trying to reproduce the environment and will then test connecting<br />to it.</p>
<p>-Matt<br />Matthew Dillon<br /><<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>></p>
</blockquote>
<p>Attached<br />-- <br />Please do not CC me, since I already receive everything from these MLs.</p>
<p>Regards,<br />Rumko</p> DragonFlyBSD - Bug #1874: mpd listening on all IPs, accepting only on onehttps://bugs.dragonflybsd.org/issues/1874?journal_id=98882011-05-08T20:01:01Zmatthiasr
<ul></ul><p>mpd is poorly documented; from my experience you have to uncomment the <br />'bind_to_address "any"' line, at least with recent versions of mpd. No idea why <br />they bind to *:6600 and then don't accept connections if you don't, but with "any" <br />it works for me - I can connect locally, via IPv4 and IPv6.</p>