question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port 4200 is already in use

See original GitHub issue

it should automatic shift on other port if a port is busy, currently when i try to serve two projects at a time i always get error:

Port 4200 is already in use

Thank You, M.Inzamam Malik

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

41reactions
melhaercommented, Oct 6, 2017

For Windows:

Open Command Prompt and type: netstat -a -o -n Find the PID of the process that you want to kill. Type: taskkill /F /PID 16876 This one 16876 - is the PID for the process that I want to kill - in that case, the process is 4200 - check the attached file.

capture

35reactions
danielsoglcommented, Jan 24, 2017

You can set your port with ng serve --port 1234

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Port 4200 is already in use" when running the ng serve ...
In this case, you need to change the port number of angular application as mentioned below. You already ran ng serve and to...
Read more >
Port 4200 Is Already In Use. Use '–Port' To Specify A Different ...
Port 4200 is already in use. Use --port to specify a different port error occures sometimes when we run our angular app using...
Read more >
How to avoid 'Port 4200 is already in use ... - Nexus Innovations
Step 1: Find the connection's PID · Step 2: Kill the process using it's PID · Step 3: Restart your server · Step...
Read more >
“Port 4200 is Already in Use” When Running the ng serve ...
As we know, the ng serve uses default port number 4200 to run the angular application. And our application URL will be http://localhost:4200....
Read more >
How to avoid 'Port 4200 is already in use' error with Angular ...
Step 1: Find the connection's PID · Step 2: Kill the process using it's PID · Step 3: Restart your server · Step...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found