http-party / node-portfinder

A simple tool to find an open port or domain socket on the current machine
https://github.com/http-party/node-portfinder
Other
887 stars 95 forks source link

Embrace Errors #53

Closed eriktrom closed 6 years ago

eriktrom commented 7 years ago

Checklist

ro0gr commented 7 years ago

I've tried it locally and have the following error

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: connect EADDRNOTAVAIL 0.0.0.0:4200
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

I'm on win10. os.networkInterfaces() does not throw and returns the whole interfaces list. Hope it helps

eriktrom commented 7 years ago

@ro0gr - hey appreciate u taking the time to test it out. Regarding the error with 0.0.0.0 - I'm considering taking that out along with '::'. Did u try that by any chance?

Either way thanks a bunch for ur feedback.

eriktrom commented 6 years ago

closing - will re-open if such codez are needed