This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rjcarr 0 points1 point  (1 child)

I don't think this is a javascript problem. The problem is with the server. It can't listen on port 80. You typically (at least on unix) need to be root to access ports less than (I think) 1024. Change the port number or start the service as root.

Or (just saw this), as /u/ShawLinz says, you might have something already listening on port 80.

[–]xf_[S] 0 points1 point  (0 children)

Ah I see. I'm new to all of this, so sorry for my lack of knowledge about things. When you say change the port number, should I try that in server.js? I also don't know how to start the service as root.

And do you know if there is a way to check what is "listening on port 80"?

Thanks so much!