[FAQ] Node.js v22.12.0 app cannot connect

Symptom

A NodeJS application that uses @interopio/desktop does not connect to io.Connect Desktop when the application is started with Node.js v22.12.0.

Root cause

This was caused by a bug in Node.js v22.12.0. There is a difference in the way localhost is resolved in Node.js v22.12.0 compared to newer Node.js versions. A fix was introduced in Node.js v22.13.0.

References (Node.js project):

Affected and working Node.js versions

  • Affected: Node.js v22.12.0

  • Fixed in: Node.js v22.13.0 (the fix from the Node.js PR above is included starting from this release)

  • Also confirmed working: Node.js v24.11.0, and Node.js v20.18.1 (reported as a working downgrade)