-
Notifications
You must be signed in to change notification settings - Fork 279
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
Localhost lookup and default host settings #722
Comments
This was referenced May 11, 2022
Merged
confirmed, great:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently I ran into the issue "localhost" not being consistently resolved to the same loopback address. Sometimes it would lookup IPv6 loopback
::1
and sometimes to IPv4127.0.0.1
. After investigation I figured out that resolved IP depended on the nodejs version and I had different nodejs version in different shells. So v16 was resolvinglocalhost
to IPv4 and v18 to IPv6. I am not 100% sure this behavior is consistent with other systems, but here is the way to reproduce:Recent nodejs release v18, specifically nodejs/node#41431 PR is the source of this difference and I have not gone deeper to why for now. Important thing is that we can't 100% say what it will bind to. I think just using
127.0.0.1
by default will more consistent.The text was updated successfully, but these errors were encountered: