We need to specify the host name to connect. If we don't it defaults to localhost - it seems in node 17+ DNS resolution has changed to return IPv6 addresses by default which causes the connection to fail because the listener has only bound to an IPv4 address.
We need to specify the host name to connect. If we don't it defaults to
localhost
- it seems in node 17+ DNS resolution has changed to return IPv6 addresses by default which causes the connection to fail because the listener has only bound to an IPv4 address.