Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to access localhost on macOS #718

Open
philippseith opened this issue Apr 8, 2023 · 1 comment
Open

Failing to access localhost on macOS #718

philippseith opened this issue Apr 8, 2023 · 1 comment

Comments

@philippseith
Copy link

philippseith commented Apr 8, 2023

I am trying to build a simple reverse proxy with https://hexdocs.pm/reverse_proxy_plug and its https://github.com/edgurgel/httpoison http client plugin. When I forward requests to a (angular dev-). server, listening on localhost:4200, they finally reach :hackney.request/5 with the url "http://localhost:4200" which times out, I guess because localhost resolves on macOS to ::1 instead of 127.0.0.1 (which seems to be the resolution result in hackney).
When the angular dev server is explicitly started with address 127.0.0.1, the request works.

used versions:
OTP 25
Elixir 1.14.1
hackney 1.18.1

@benoitc
Copy link
Owner

benoitc commented Jun 19, 2024

should be fixed with #737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants