amazon web services - How do I open a TCP port on an AWS instance? -


i have tcp socket server running on port 8002 on aws instance. can connect localhost, via 127.0.0.1 or internal aws ip address, cannot connect via public ip address localhost, aws instance, or internet. cannot connect aws instance whether use internal or public ip.

i have opened port in active security group , there not seem additional firewall running on instance (ufw status returns "inactive", , don't see iptables installed).

the instance running ubuntu 14.04lts, , if helps server application in node.

the instance runs nginx on port 80, working , allowing traffic outside.

you may check following configurations,

  1. make sure internet gateway attached vpc
  2. check if subnet instance launched pointed internet gateway
  3. check if instance has public ip/elastic ip assigned
  4. check if nacl , security group allow inbound traffic on port 8002

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -