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

SimonQ's avatar

Chrome: localhost err_connection_refused

I'm using php artisan serve to pull up a local server to port 8000 (i.e. localhost:8000). This works on Safari and Firefox but, when I try it on Chrome I get the error: err_connection_refused. Upon searching for a solution one website said to change the .localhost domain names to something else like .local . How would I change that? I am using a Mac for development.

0 likes
2 replies
ohdude's avatar

I did had the same issue. I found an article about solving the err_connection_refused and followed those methods one by one.

It all worked fine after i'd reached the step in which we have to clear the google chrome cache. Rest of the people who are looking for the solution might want to try it.

Please or to participate in this conversation.