How to Fix the ERR_CONNECTION_REFUSED Error in Chrome
Localhost refused to connect is a type of network connection error you might encounter when working on a project on your local web server. It is triggered if the firewall wrongly blocks your server or you’re using the wrong port.