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.

If port is already being used then start server on a different port.

See original GitHub issue

Currently if I already have a different server listening on port 3000 then react-scripts start still starts up and says The app is running at http://localhost:3000/, but it’s actually not.

It should either fail to start up (in which case there should be a way to manually specify a different port) or automatically pick an available port.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
0xcaffcommented, Jul 23, 2016

It would be nice if you could specify the port too.

4reactions
gaearoncommented, Jul 22, 2016

I think it should ask: Something is already running at http://localhost:3000. Would you like to run the app at another port instead? [Y/n]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Port is Already in Use Error when Starting Server
Change the Server Port in the Application Server Control Panel and start the server. Specify a port that is not 80, such as...
Read more >
keep getting "? Something is already running on port 3000 ...
After running the command npm start and typing y to try to use a different port, the terminal will stay stucked until it...
Read more >
How to Check if a Port Already in Use - Thales
Configure Sentinel LDK-EMS to use a different port. >Configure the blocking application to run on a different port. >Remove and then reinstall ...
Read more >
Web server failed to start Port 8080 was already in use
In our case, port 8080 was already being used by another application and hence the web server failed to start. Usually, you would...
Read more >
The binding is already being used by a product other than IIS
You can use netstat command to verify what is holding the port 4430 on server and output to a text file (i.e netstat...
Read more >

github_iconTop Related Medium Post

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