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.

How do you find the current port being used by the dev server?

See original GitHub issue

If you happen to close the browser window that the start command opens I’m not sure of a way to find the current port without restarting the server. Might be nice to put it somewhere in the console output after the server has started.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
viankakrisnacommented, Mar 23, 2017

Yeah, it should be shown when you fix those warnings. @gaearon should we print the listening message if there are warnings?

0reactions
viankakrisnacommented, Mar 23, 2017

Hmm, probably also show the overlay on warnings too, cause usually I don’t check the terminal when the warnings happened

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get webpack-dev-server instance port inside webpack config
js file when running webpack-dev-server from the command line/NPM script? I can't just use the port number defined in the devServer object ...
Read more >
Error: The dev server is not running on port 3000. · Issue #978 ...
Run npm run dev-server before running npm start . Enter the password when prompted. Open the project in VS Code. Use Terminal, Run...
Read more >
DevServer - webpack
webpack-dev-server can be used to quickly develop an application. See the development guide to get started. This page describes the options that affect...
Read more >
webpack-dev-server
This adds the webpack-dev-server client entry point to the webpack configuration. There is no change in the url required. Just navigate to http://<host>:<port>/ ......
Read more >
Webpack Dev Server - 编程狮
Just navigate to http://«host»:«port»/«path» and let the magic happen. You should see the following messages in the browser log: [HMR] Waiting for update...
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