phplaravel-artisan

Artisan Error: Failed to listen on localhost:8000


I'm having a problem starting my Laravel installation. Whenever I type in the terminal php artisan serve, I get this error:

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

What's the problem, and how can it be fixed?

img problem

It's working now I just changed the listen port from 8000 to 8888 or any other port your services don't use.

php artisan serve --port="8888"

Solution

  • 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.