DEV Community


Discussion on: Hosting a Node.js application on Windows with IIS as reverse proxy

petereysermans profile image
Peter Eysermans Author


I can't see the image, I think you forgot to link it in your comment. Is the node application accessible on the server itself from localhost:3000? When exactly are you receiving that error?

The port is configured in node. The app.listen statement takes the port on which the node application will listen.

app.listen(3000, function () {
  console.log('Example app listening on port 3000!');

If you change that number, the application will listen and be accessible on a different port.