title: Virtual Ubuntu VM on Google Cloud can't connect via nodejs, external ip
body: <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var path = require('path');
  
  var app = express();
  
  app.listen(3000, function(){
          console.log('Server up on Port 3000');
  });
  </code></pre>
  
  <p><em>I did search and try other solutions here but I still can't figure it out</em></p>
  
  <p>I have ubuntu on a google cloud compute engine (VM) and i'm trying to access it from the internet on my laptop. I'm using nodejs/ npm/ express.</p>
  
  <p>The above is my index.js file (very basic) and when I start that using the following on the VM</p>
  
  <pre><code>nodejs index.js
  </code></pre>
  
  <p><em>35.188.226.109 is the external ip for the VM</em></p>
  
  <p>When navigating in chrome to <a href="http://35.188.226.109:3000/" rel="nofollow noreferrer">http://35.188.226.109:3000/</a> it says the site can't be reached.</p>
  
  <p>What am I missing?</p>