serves on port 8080 but not port 80
See original GitHub issueubuntu@domU-12-31-39-09-9A-6D:~$ http-server -p 80
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1023:19)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3
ubuntu@domU-12-31-39-09-9A-6D:~$ http-server
Starting up http-server, serving ./ on: http://0.0.0.0:8080
Hit CTRL-C to stop the server
^Chttp-server stopped.
Issue Analytics
- State:
- Created 9 years ago
- Comments:5
Top Results From Across the Web
What makes port 80 not mentioned while port 8080 should ...
Almost all protocols have their own default ports. For example, HTTP is 80, HTTPS is 443, FTP is 21, RTSP is 554, RDP...
Read more >serves on port 8080 but not port 80 · Issue #105 · http-party ...
I ended up creating a proxy host with nginx and everything is fine. The port 80 requires, indeed, elevated privileges.
Read more >Http port 80 is not open but Port 8080 is opened and ...
I have redhat linux server GNU. The port 80 is not open there, and port 8080 is opened. Now i am trying to...
Read more >Why is Apache running on port 8080 instead on port 80?
The usual reason why apache is often configured to listen on that port is that a process need to be run under the...
Read more >Port Authority, for Internet Port 8080
This port is a popular alternative to port 80 for offering web services. "8080" was chosen since it is "two 80's", and also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
The first 1024 ports are reserved for root.
Quick fix: To use
http-server
listening over port 80, you can to run it with the privileges of the root user: