Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Corbin's avatar

ERR_CONNECTION_REFUSED on chrome but not firefox, or Safari

I went out this morning with everything working fine on google chrome to return to getting ERR_CONNECTION_REFUSED when I would try going to mysite.dev and myexamplesite.dev both of which work fine on Firefox and Safari.

I cleared chromes cache and turned mamp on and off and still nothing. I also use LAravel Valet.

0 likes
8 replies
jbloomstrom's avatar

Check your proxy settings in Chrome. Firefox can ignore system proxy settings, but Chrome uses the system proxy by default.

Corbin's avatar

@jbloomstrom , thanks for the help. I'm kind of unsure as to what should be checked and not checked in my proxy settings. I'm not really sure what I am looking for, or what to do.

sutherland's avatar

Chrome forces .dev domains to use https now.

You'll have to either use valet secure mysite or valet domain app to start using .app for your development domain.

2 likes
sutherland's avatar

Looking at the docs it appears it doesn't, so switching to .app via valet domain app would be a better solution if you need valet share to work.

Corbin's avatar

@sutherland, you sure this is the reason though? I just used valet share obtained an unsecure http link and it worked.

http://somenumber.ngrok.io

then I tried valet domain app and it didn't fix the problem and then valet secure and it did. I guess I might just have to valet unsecure sharing.

Isn't there away I could add the domain to be accepted by chrome though?

CliftonTV's avatar

Another option for those who are still searching...

@sutherland did provide great feedback.

I still prefer the .dev TLD. So, you can just cd into the project directory. Then type valet secure. This will secure the domain with a trusted TLS certificate.

I hope this helps as well for those who are as picky as me. LOL!

Please or to participate in this conversation.