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.

The default port 8080 cannot work

See original GitHub issue

The npm run dev command can run without any problem, but i can see nothing in the browser with localhost:8080.

The lsof command shows:

lsof -i :8080
COMMAND   PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
node    24732 Calvin   24u  IPv4 0xb6920191477c7e03      0t0  TCP localhost:http-alt (LISTEN)

So i’m sure no other applications bind this port, when i change the port in dev-server.js to 8090, it worked.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
yyx990803commented, Feb 18, 2016

In build/dev-server.js, try changing app.listen(8080, 'localhost', function () { ... }) to just app.listen(8080, function () { ... }).

4reactions
InsCakecommented, Feb 19, 2016

I am using the simple-webpack template. No built/dev-server.js can be found.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Localhost cannot be reached error when port 8080 is ...
Hold down the Windows key and press the R key to open the Run dialog. · Type “cmd” and click OK in the...
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 >
java - Web server failed to start. Port 8080 was already in use ...
Your port 8080 is already bound, you can not run Spring boot in the same port. Go to command prompt in windows and...
Read more >
windows - Cannot work out what is using port 8080
Use netstat -ba in administrator level command prompt, and you will see all active network sockets and processes that own those sockets.
Read more >
Cannot access my webserver - TechNet - Microsoft
Port 8080 is blocked by default by Windows Firewall. So access the firewall (right click the network icon near the clock 'Open Network...
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