title: Google compute instance is not accessible with external ip and port
body: <p>I created a google compute instance on <a href="https://console.cloud.google.com/compute/instances" rel="nofollow noreferrer">https://console.cloud.google.com/compute/instances</a></p>
  
  <p>After that I deployed a jar file embedded jetty server running on port 8082. I execute the jar file with java -jar command. </p>
  
  <p>In VPC network I add a firewall rule to open port 8082.  Now if I try to access the google instance at port 8082 in web browser I am getting connection refused error. Below is the external ip address with port</p>
  
  <p><a href="http://35.184.211.81:8082" rel="nofollow noreferrer">http://35.184.211.81:8082</a></p>
  
  <p>I don't know why above external ip is not working. If I open cloud shell and open web preview on port 8082 then I am able to access my web application on port 8082 below is the url </p>
  
  <p><a href="https://8082-dot-3144491-dot-devshell.appspot.com" rel="nofollow noreferrer">https://8082-dot-3144491-dot-devshell.appspot.com</a></p>
  
  <p>It looks confusing. Above adress is showing that my application is deployed on google cloud instance but it is not accessible using external ip.</p>