---
title: "Discussion on \"Fixing Node.js Localhost ECONNREFUSED Connection Errors\" | Hashnode"
description: "Discussion on \"Fixing Node.js Localhost ECONNREFUSED Connection Errors\". Learn why Node 17 broke localhost connections with ECONNREFUSED by prioritizing IPv6, and how Node 20's Happy Eyeballs algorithm resolves the issue."
url: "https://hashnode.com/posts/how-node-20-fixes-localhost-econnrefused/6aca06c85dcb9493e3150762"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing Node.js Localhost ECONNREFUSED Connection Errors](https://doogal.dev/how-node-20-fixes-localhost-econnrefused?utm_source=hashnode&utm_medium=feed)

Learn why Node 17 broke localhost connections with ECONNREFUSED by prioritizing IPv6, and how Node 20's Happy Eyeballs algorithm resolves the issue.

Oct 10 · 4 min read · doogal.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#backend](https://hashnode.com/tag/backend)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)
-   [#networking](https://hashnode.com/tag/networking)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

  
[View profile](https://hashnode.com/@doogal)

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
