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.

serves on port 8080 but not port 80

See original GitHub issue
ubuntu@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:closed
  • Created 9 years ago
  • Comments:5

github_iconTop GitHub Comments

10reactions
soerfacecommented, Oct 28, 2014

The first 1024 ports are reserved for root.

9reactions
moubrycommented, Feb 6, 2015

Quick fix: To use http-server listening over port 80, you can to run it with the privileges of the root user:

$ sudo http-server -p 80
Read more comments on GitHub >

github_iconTop 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 >

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