-

@ Matthias Andrasch
2025-05-12 11:14:09
Question for #DockerCompose #Docker #nodejs #ipv6
I recently encountered errors on local development when a NodeJS CMS like Strapi wanted to fetch() something from a frontend API route with http://localhost:1234 server-side:
"cause: Error: connect ECONNREFUSED ::1:1234"
How do you deal with IPv6?
1. Try to avoid "localhost", use 127.0.0.1 everywhere (strapi, nuxt config) instead?
2. Try to run each service on "localhost" and "::1", ChatGPT suggested using "::" 🤔
3. Other solutions?
Thanks very much in advance!