I'm trying to make my application to work on IPv6 while on localhost in the development environment:
config :my_app, MyAppWeb.Endpoint,
http: [port: System.get_env("PORT", "8000"), ip: {0, 0, 0, 0, 0, 0, 0, 0}],
# http: [:inet6, port: System.get_env("PORT", "8000")],
# ......
Nonetheless, accessing my application IPv6 won't load it:
[1111:2222: .....]:8000
whereas localhost:8000 will normally, as always.
How to make it work with IPv6? On localhost, in the dev env.
update1
http: [port: System.get_env("PORT", "8000"), ip: "::1"],
still won't work
update2
http: [:inet6, port: System.get_env("PORT", "8000"), ip: "::1"],
still won't work
How to get Phoenix to listen on IPv6? -- nothing has worked