bee icon indicating copy to clipboard operation
bee copied to clipboard

API should listen also on IPv6 `::1`

Open AuHau opened this issue 3 years ago • 4 comments

Node 18 changed the default behavior of translating DNS names into IPv6 instead of IPv4. That means that localhost:1633 gets translated into ::1:1633. I think this is a quite strong signal for push to IPv6 support and also it creates a lot of problems for us as suddenly a lot of our projects do not work on Node 18 as we use localhost in almost all our default settings.

Would it be possible for the Bee's API to listen also on the IPv6's localhost ::1?

AuHau avatar Aug 10 '22 14:08 AuHau

You could just use 127.0.0.1 instead of localhost?

ldeffenb avatar Aug 10 '22 17:08 ldeffenb

As workaround yes (and one that we already use), but it is not a long-term fix ;-)

AuHau avatar Aug 11 '22 08:08 AuHau

But any change should work with all of http://localhost:1633 and http://127.0.0.1:1633 and http://::1:1633 and not leave any particular use case in the dust.

ldeffenb avatar Aug 11 '22 16:08 ldeffenb

Yup agree.

AuHau avatar Aug 11 '22 16:08 AuHau