Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when i launch node server.js #5

Open
abadalejandro opened this issue Feb 5, 2018 · 3 comments
Open

Error when i launch node server.js #5

abadalejandro opened this issue Feb 5, 2018 · 3 comments

Comments

@abadalejandro
Copy link

Hi, when I execute node server.js I have this error:
The HTTPS server is up and running
WebSocket Secure server is up and running.
events.js:182
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:443
at Object._errnoException (util.js:1041:11)
at _exceptionWithHostPort (util.js:1064:20)
at Server.setupListenHandle [as _listen2] (net.js:1305:19)
at listenInCluster (net.js:1370:12)
at Server.listen (net.js:1466:7)
at Object. (/Users/pepe/Projects/WebRTC/SimpleVideoChat/server.js:25:43)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! simple-video-chat@0.1.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the simple-video-chat@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Can you help me?

@dimircea
Copy link
Owner

dimircea commented Feb 5, 2018

Something is blocking the port 443 (SSL), which the nodejs app tries to start.
I see two main reasons for this:

  1. your user does not have sufficient rights to open this port (note that ports below 1024 requires root/admin normally); OR...

  2. Something else, such as Apache is already using port 443, so it can't be open.

@abadalejandro
Copy link
Author

abadalejandro commented Feb 6, 2018 via email

@deepdil-enfin
Copy link

@hugocuetos change the port from 443 to any other port like 3001. and listen to that port with https
if u r using localhost => https://localhost:3001/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants