title: Angular - can not serve on EC2
body: <p>I created Angular app on EC2 (RHEL 7) with <code>ng new app1</code> and tried to serve it with:</p>
  
  <pre><code>ng new app1
  cd app1
  ng serve --port=4200
  </code></pre>
  
  <p>When I go to url: <code>IP:4200</code> - getting following error:</p>
  
  <pre><code>Exception:  tcp_error
  Exception details:  A communication error occurred: "Connection refused"
  </code></pre>
  
  <p>But when I try with NodeJS on the same server and same port - I can see the result on the same <code>IP:4200</code> . NodeJS code is:</p>
  
  <pre><code>var express = require('express');
  var app = express();
  app.get('/', function (req, res) {
    res.send('Hello World 3!');
  });
  app.listen(4200, function () {
    console.log('Example app listening on port 4500!');
  });
  </code></pre>
  
  <p>What could be wrong with Angular and EC2? I can run the exact same Angular code on my local computer and when go to <code>localhost:4200</code> - I can see results (but not from EC2 <code>IP:4200</code>).</p>