process.env.PORT prints weird string

2019-09-06 14:27发布

问题:

When running console.log("Express server listening on port " + port); in node.js on a deployed Azure website, I get the following string

Express server listening on port \\.\pipe\d9797e42-9e1f-421c-91b9-3d86496eaeb8

What is this and how can I determine what port my site is really running on?

回答1:

Should be running in port 80.

Seems like an internal instruction from the server