I'm trying to get NodeJS to listen to an internal endpoint on Azure.
I've got the following set-up.
- I've created an internal endpoint for port 8082 via ServiceDefinition.
In my server.js I have 2 http servers
server.listen(process.env.port); // External server.listen(8082); // Internal
The external port is bound by IISNode and correctly responds to a request.
- However the internal port fails with
Error: listen EACCES at errnoException (net.js:901:11) at Server._listen2 (net.js:1020:19) at listen (net.js:1061:10) at Server.listen (net.js:1127:5)
If I change the port to say 8083 then there is no error.
Does anyone know why Node is unable to bind to an Azure internal port?
Any help will be much appreciated.
Thanks.