Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ember s - Port 4200 is already in use

Tags:

ember.js

I have two ember projects: project1, project 2

project1: ember s , port 4200 is working fine. I closed the project1 terminal and again tried to start ember s inside project2, when i do that, i am getting Port 4200 is already in use.

Port 4200 is already in use.

Why am i getting this error, as other instances where already killed and how to rectify it ?

like image 970
Manikandan Avatar asked Jul 26 '16 09:07

Manikandan


2 Answers

Try the following,

sudo fuser -k 4200/tcp

It will kill all process belongs to port 4200.

like image 66
Manu Benjamin Avatar answered Oct 09 '22 19:10

Manu Benjamin


None of the answers work on Mac so I'm posting this solution.

kill -9 $(lsof -i tcp:4200 -t)
like image 25
Vlado Cingel Avatar answered Oct 09 '22 21:10

Vlado Cingel