Closed
Description
- Version:
master
- Platform: Windows
- Subsystem: net
Linux converts the ipv6 address "::" to "::1", while windows does not.
This makes server.address().address
useless [as a target address] when bound to IPv6 localhost 0.0.0.0
or ::
on Windows.
[addition]
Specifically the use of server.address().address
for initiating new connection:
const server = net.createServer(() => {});
server.listen();
server.address().address === '::';
net.connect(
{ port: server.address().port, host: server.address().address }
); // throws 'Error: connect EADDRNOTAVAIL :::56210'
While apparently Linux does allow opening a connection to the ::
unspecified address