The default port 8080 cannot work
See original GitHub issueThe 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:
- Created 8 years ago
- Comments:19 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In
build/dev-server.js
, try changingapp.listen(8080, 'localhost', function () { ... })
to justapp.listen(8080, function () { ... })
.I am using the simple-webpack template. No
built/dev-server.js
can be found.