I'm on Windows 10. I'm running a local web server that's listening on [::1]:5173
. When attempting to connect using Firefox to http://localhost:5173
, I get a connection reset error. Connecting to [::1]:5173
works however. Using the Firefox about:networking
DNS lookup tool, localhost
resolves to both 127.0.0.1
and [::1]
Chrome connects to the localhost URL just fine.
Why isn't my localhost
URL working correctly on Firefox?
http://[::1]
andhttp://[localhost]
. (Not sure that the second one can work.)localhost:5173
not working (the cache was stuck on some old project), but127.0.0.1:5173
was working fine. After I made my browser forget thelocalhost:5173
url it got resolved, and now it works without me having to use hard reload (ctrl + f5)