title: Trying to make a publicly accessible AWS Cloud9 URL
body: <p>I'm using AWS Cloud9 and it's been smooth sailing, but now I'm trying to make my URL public so that I can make HTTP requests in Postman, and I'm really struggling. I'm very much a beginner full stack developer and any help would be appreciated.</p>
  
  <p>Thanks,
  Steven</p>
  
  <p>I'm trying to properly follow this guide:</p>
  
  <p><a href="https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html</a></p>
  
  <p>Specifically, I make it to Step 4 where it asks me to change the IP address in my code. When I change my Node JS Express app's app.listen IP address to my EC2 instance IP address, I get an error.</p>
  
  <p>I think I've successfully made my EC2 instance publicly accessible and that it's just my code that is not listening correctly (those steps seemed easy to follow, but I could be wrong.</p>
  
  <pre><code>var express = require("express");
  var app = express();
  
  app.set("view engine", "ejs"); 
  
  app.get("/", function (req, res){
      res.render("helloWorld");
  });
  
  
  app.listen(8080, '**AWS EC2 instance IP**', function(){
      console.log("Server Has Started!");
  });
  </code></pre>
  
  <p>It runs fine when I do not specify an IP address in the app.listen, but then of course I can only access the server from a different tab in the same browser. Here is what the console spits out when I run the code with the <strong>AWS EC2 instance IP</strong> included:</p>
  
  <pre><code>events.js:174
  
        throw er; // Unhandled 'error' event
  
        ^
  
  
  
  Error: listen EADDRNOTAVAIL: address not available **AWS EC2 instance IP**:8080
  
      at Server.setupListenHandle [as _listen2] (net.js:1262:19)
  
      at listenInCluster (net.js:1327:12)
  
      at doListen (net.js:1460:7)
  
      at process._tickCallback (internal/process/next_tick.js:63:19)
  
      at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
  
      at startup (internal/bootstrap/node.js:283:19)
  
      at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  
  Emitted 'error' event at:
  
      at emitErrorNT (net.js:1306:8)
  
      at process._tickCallback (internal/process/next_tick.js:63:19)
  
      [... lines matching original stack trace ...]
  
      at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  </code></pre>