Yasser Yasser - 6 months ago 55
PHP Question

Artisan Error: Failed to listen on localhost:8000

I'm having problem starting my laravel installation. Whenever I type in the terminal 'php artisan serve' it responses me an error:

Failed to listen on localhost:8000 (reason:une tentative d'access un
α socket de maniere interdite par ses autorisation d'access a 0t0

any ideas on how to solve this?

thanks in advance.

img problem http://i.imgur.com/rOt3Lat.png

it's works now I just changed the listen port from 8000 to 8888 or any other port your services didn't use it

'php artisan serve --port="8888"'


Are there any other services running on port 8000?

You can use this command on Windows:

netstat -aon | more

or on Linux / OSX

sudo netstat -plnt

to see what services are running. Then disable the service that is running on port 8000 or use another port.