My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Port 8080 already in use (laravel)

Chidiebere Chukwudi's photo
Chidiebere Chukwudi
·Jun 2, 2021·

1 min read

You get this kind of error for one reason: you are trying to run an app, example, a laravel project on the same port.

So here are two quick simple solutions :

A. Close the terminal where you initially ran php artisan serve by pressing ctrl + c then from your terminal, cd into the root folder of your OTHER laravel project, then run php artisan serve again.

OR

B. CD into your OTHER laravel app root directory. Then define another port in your terminal by typing the command php artisan serve --port=8081

Now, you have two different apps running on two ports: http://127.0.0.1:8000 and http://127.0.0.1:8081

I hope this helps.