Geting error : This site can’t be reached, localhost cant be reached! ERR_CONNECTION_REFUSED

whenever I deploy on localhost http://localhost:3000/

i get that error.

# this site can’t be reached

**localhost** refused to connect.

Try:

* Checking the connection
* [Checking the proxy and the firewall](chrome-error://chromewebdata/#buttons)

ERR_CONNECTION_REFUSED

already tired this If you use a proxy server…
Check your proxy settings or contact your network administrator to make sure that the proxy server is working. If you don’t believe you should be using a proxy server: Go to the Chrome menu > Settings > + Show advanced settings > Change proxy settings… > LAN Settings and deselect “Use a proxy server for your LAN”.

not working to resolve this problem

Hey @DonaBiswas1 welcome to Ask!

Your Repls are not hosted on your machine, therefore they aren’t accessible from localhost.
Try connecting to your Repl using its URL (should look like https://your-repl-name--donabiswas1.repl.co).
Let me know if this helps!

2 Likes