Open a custom port on AWS Cloud9

      1 min read  

Suppose you have created a custom application with your Cloud9 IDE. The application creates a local web server on port 3000 (typical for NodeJS apps). Lets assume the following code: // save in server.js const http = require(‘http’) const port = 3000 const requestHandler = (request, response) => { console.log(request.url) response.end(‘Hello Node.js Server!’) } const server = http.createServer(requestHandler) server.listen(port, (err) => { if (err) { return console.log(‘something bad happened’, err) } console.