title: publicly access app from aws ec2 instance
body: <p>I have just started with aws ec2.</p>
  
  <p>I have deployed a simple web app on ec2 which listens on port 12345.</p>
  
  <p>After SSH-ing into the instance from my windows machine using putty and once connected using curl for the apps endpoint and using either localhost, private IP address as well as public Dns (IPv4) it works fine.It does not work with IPv4 public ip though.</p>
  
  <p>I now want to make that app accessible from the internet via browser. But, when I use public Dns or even Ipv4 Public ip along with the port , and try to access , it is not accessible. I only get the message , "This site can’t be reached" from chrome. </p>
  
  <p>I have  Inbound rule setup for the security group associated with the instance, 
  which allows ,
  all trafic, via all protocol , via all ports (0-65535), and also I have given the Source as Custom, with IP range of 0.0.0.0/0.</p>
  
  <p>I also have added another rule with same attributes, except for Source a Custom with IP range of , ::/0.</p>
  
  <p>Can someone advise me on the right way to do this.</p>