问题
events.js:160 throw er; // Unhandled 'error' event= Error: listen EADDRNOTAVAIL 104.154.26.2:3000
104.154.26.2 is my external ip The .listen looks like this:
serv.listen(3000,"104.154.26.2");
I know I should somehow bind the ip address to 0.0.0.0 and that there is some firewall stuff to do, but loads of time researching did nothing.
来源:https://stackoverflow.com/questions/48932652/how-do-i-make-the-listen-work-in-node-js-for-my-gcp-server-i-put-in-the-extern