Matthias Andrasch<p>Question for <a href="https://social.tchncs.de/tags/DockerCompose" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DockerCompose</span></a> <a href="https://social.tchncs.de/tags/Docker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Docker</span></a> <a href="https://social.tchncs.de/tags/nodejs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nodejs</span></a> <a href="https://social.tchncs.de/tags/ipv6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ipv6</span></a> <a href="https://social.tchncs.de/tags/nuxt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nuxt</span></a> <a href="https://social.tchncs.de/tags/strapi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>strapi</span></a></p><p>I recently encountered errors on local development when a NodeJS CMS like Strapi wanted to fetch() something from a frontend API route from Nuxt for http://localhost:3000 server-side:</p><p>"cause: Error: connect ECONNREFUSED ::1:3000"</p><p>How do you deal with IPv6?</p><p>1. Try to avoid "localhost", use 127.0.0.1 everywhere (strapi, nuxt config) instead?<br>2. Try to run each service on "localhost" and "::1", ChatGPT suggested using "::" to bind ipv4 and ipv6 🤔 <br>3. Other solutions? </p><p>Thanks very much in advance!</p>