nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.38k stars 3.88k forks source link

about the nw's error page. #763

Closed ChineseDron closed 11 years ago

ChineseDron commented 11 years ago

Hello, I want listen a port with HttpServer, but I am not sure which port already in used, when a port was in use, nw seems to be jump to a error page..... how I can hack it please?

wyqydsyq commented 11 years ago

You'll need to find an unused port (you'll get errors using plain node.js without nw when trying to listen on used ports too).

You can use a command like netstat -ano to list used ports (not sure what OSX or Windows equivalents would be)

miklschmidt commented 11 years ago

You could use https://github.com/danielzzz/node-portchecker

ChineseDron commented 11 years ago

Thanks to both of you very much.

tommoor commented 11 years ago

@ChineseDron please close this if your issue is resolved :)

rogerwang commented 11 years ago

Hello, Please use our mailing list or Stackoverflow (under the 'node-webkit' tag) for questions.