amazon-ec2portsnetstat

ec2 instance ports 8080 and 8081not open


I have an ubuntu instance ec2 and open Ports 8080 and 8081 from security group but my app give me connection lost and when I test open port via net stat -a give me open ports as shown in image below enter image description here

as you see port 8080 and 8081 not open.

please any help to fix this issue.


Solution

  • Just a suggestion - when creating Node or GoLang apps on EC2 that are intended to listen make sure you set their binding to the private EC2 instance IP Address and not the ELB IP. The ELB IP is not available to the instance to bind to. You can find the private IP in your AWS console.