title: Accessing Google Cloud VM Instance Tomcat using External IP
body: <p>I am trying to access my Tomcat HomePage which is inside my Google Cloud VM Instance with External IP address 35.189.85.127 and Internal IP 10.154.0.2. On my local machine, in my browser I tried <a href="http://35.189.85.127" rel="nofollow noreferrer">http://35.189.85.127</a> and <a href="http://35.189.85.127:8080" rel="nofollow noreferrer">http://35.189.85.127:8080</a> but got error </p>
  
  <blockquote>
    <p>The connection has timed out. The server at 35.189.85.127 is taking too long to respond.</p>
  </blockquote>
  
  <p>I have seen all the questions and replies on stackoverflow regarding this question but still I found no clear solution. </p>
  
  <p>The steps that I've done so far:</p>
  
  <ol>
  <li>I have setup a Google Cloud VM instance in Compute Engine. I am using Windows Server 2016 as the image.</li>
  <li>Using RDP I log on to Windows Server.</li>
  <li>I successfully installed Java 1.7 and Tomcat 7 on Windows Server. </li>
  <li>I tested Java and Tomcat 7, both are working fine i.e. I open browser and type localhost:8080 and it shows Tomcat HomePage. </li>
  <li>I replaced localhost with my VM Instance Internal IP i.e. 10.154.0.2:8080 and it again correctly shows Tomcat HomePage.</li>
  <li>Now I try to access Tomcat HomePage using my VM Instance External IP (Static) 35.189.85.127 but in my browser I get error </li>
  </ol>
  
  <blockquote>
    <p>The connection has timed out. The server at 35.189.85.127 is taking too long to respond.</p>
  </blockquote>