localstack / docs

The LocalStack documentation 📖
https://docs.localstack.cloud
Apache License 2.0
52 stars 94 forks source link

Using `localhost` seems problematic #429

Open adesso-os opened 1 year ago

adesso-os commented 1 year ago

I'm a new user, so maybe I missed something obvious. When I set up Localstack, I configured my AWS interaction to use http://localhost:4566 as the target and had a lot of connection issues, which send me looking in all the wrong directions for a solution.

At some point I realized that my setup is trying to connect to ::1:4566 and I though I might want to try explicit IPv4. I then changed my configuration to http://127.0.0.1:4566 and it worked.

Maybe my IPv6 setup, especially with regards to containers, is broken, but maybe it was never intended to work with IPv6 in the first place and the localhost usage is problematic.

homeyer commented 1 year ago

Same problem - following the quickstart tutorial on a mac (osx 13.1) didn't work by default, ran into this issue: https://github.com/localstack/serverless-localstack/issues/125

I had to change the quickstart serverless config to use host: 127.0.0.1 to get it to work.