Aakash Jain
Aakash Jain

Reputation: 760

Cannot access nodejs server from outside ec2 instance

I am trying to host a web service on aws ec2 windows server 2008 r2 instance, but am unable to access the server using its public ip outside the instance. The port my application is hosted on as 3333. I have added rules for SSH, HTTP and ICMP in my security group but still cannot access it externally. I can connect to the machine via RDP but cannot even ping the ip from my local machine. Is it something not supported on amazon free 12 month account? Have been struggling with this for a while, any help appreciated. Below attached is the snapshot for my selected security group for the instance.

enter image description here Thanks, Aakash

Upvotes: 0

Views: 2451

Answers (3)

TURAB SHAIKH
TURAB SHAIKH

Reputation: 1

Make sure that you have allow your server to public access.For giving access go to security group in that inbound rule and allow them to public access.

Upvotes: -1

Sachin Parashar
Sachin Parashar

Reputation: 1116

You can access your server from anywhere even if you have free tier. You just need to add correct inbound rules in the associated security group. In your case, rules seem fine but the windows defender must be blocking all the incoming requests. You can try turning off the windows defender in your windows ec2 instance by searching "Windows Defender Firewall" -> click "Turn windows defender firewall on or off" -> select "Turn off windows defender firewall(not recommended)" for public requests.

I was facing the same issue. Turning it off worked for me.

Upvotes: 3

Shankar Morwal
Shankar Morwal

Reputation: 157

I has nothing to do with free tier. You need to allow the ports which you want to access from public. Please go to security groups and allow it.

Upvotes: -1

Related Questions