Farhad
2 min readApr 28, 2019

Angular :: Error: Port 4200 is already in use. Use ‘ — port’ to specify a different port.

Error: Port 4200 is already in use. Use ‘ — port’ to specify a different port.

To find the connections on port 4200 then I tried:

netstat -ano | findstr :4200

and result case with process id which was connected to the port,

To stop the process I was ready to kill the process,

tskill 12668

That was done, trying again the “ng serve” could go ahead with no issue.

Another approach which sometimes I take when I encounter with this issue while serving an Angular application from TERMINAL window on Visual Studio Code is just to simply close and open it again, as it will kill the related process.