Skip to content

Can't connect to my NodeJS server on my Windows instance

0

Hello, i'm on a windows instance, installed Node on the server correctly, installed my NodeJS app in the wwwroot folder (i know i can install it everywhere, but just wanted my odds to be increased here)

  • Configured and attached an Elastic IP to my instance
  • I can reach the IIS default web page from the public DNS ec2.xxxxxxx.ca-central-1.compute.amazonaws.com so i know the address is up and running and reachable
  • I added the following line to my Security Group: IPv4 Custom TCP TCP 6060 0.0.0.0/0 NodeJS
  • My Node app is running on port 6060
  • I installed Postman on my instance to test local call to Node and it's working fine

But i'm unable to call any webservices of my Node app.

Anybody got an idea why ?

Thanks

asked 2 years ago591 views
1 Answer
1
Accepted Answer

Hello Frank,

Do you use IIS as a reverse proxy in front of your node.js application? Did you bind your node.js application to the loopback interface (127.0.0.1/localhost) of your server? To enable your application to listen for incoming requests, you need to bind it to "0.0.0.0".

To investigate further, you would need to provide more specific details about the error, as we don't have access to your environment/configuration.

AWS
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • Hi Roland, thanks for your answer, even if it's not the solution, you point me out to the solution. I went to "Windows Security", then "Firewall & network protection", then "Allow an app through firewall". There, i added the Node executable and checked "Private" and "Public" access, then everything worked all of a sudden. So thanks for the tips, i'll mark your answer as "acceptable" cause my problem is solved.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.