I created a google compute instance on https://console.cloud.google.com/compute/instances
After that I deployed a jar file embedded jetty server running on port 8082. I execute the jar file with java -jar command.
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
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
https://8082-dot-3144491-dot-devshell.appspot.com
It looks confusing. Above adress is showing that my application is deployed on google cloud instance but it is not accessible using external ip.