Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • When you say it's listening on [::1]:5173, are you implying that it is NOT also listening on IPv4? If so, your results make it sound like Firefox's Happy Eyeballs support is broken, at least for localhost.
    – Spiff
    Commented Feb 17, 2023 at 18:59
  • Correct, it's not listening on 127.0.0.1. If I make the server listen on that address Firefox can use localhost just fine.
    – logix
    Commented Feb 17, 2023 at 19:04
  • What happens if you leave it listening on IPv6 but not IPv4, but make it so "localhost" only resolves to IPv6? That will help you tell whether Firefox's localhost IPv6 support is completely broken, or if it's just not doing Happy Eyeballs.
    – Spiff
    Commented Feb 17, 2023 at 19:27
  • IPv6 addresses need to be enclosed in brackets. Try http://[::1] and http://[localhost]. (Not sure that the second one can work.)
    – harrymc
    Commented Feb 17, 2023 at 20:55
  • Try clearing hsts for the problematic urls. I had localhost:5173 not working (the cache was stuck on some old project), but 127.0.0.1:5173 was working fine. After I made my browser forget the localhost:5173 url it got resolved, and now it works without me having to use hard reload (ctrl + f5)
    – Seangle
    Commented Jun 21 at 23:46