title: How to run Node/Express App on port 3001, 3002 etc?
body: <p>We are using 4 different express projects in a single server, running <code>pm2 start</code> cmd from each project root directory to start the app.</p>
  
  <p>And using ec2 Linux server, added port <code>3000</code>, <code>3001</code> to inbound rules, both runs fine but not able to access API's through <code>3001</code>, and able access by 3000, what could be an Issue?</p>
  
  <p>the same project running at <code>3000</code>, but not in <code>3001</code>, so we can confirm, there is no bug in our projects.</p>
  
  <p>Tried at terminal <code>nodemon app</code> it runs fine but not accessed by <code>Postman</code> getting same error : </p>
  
  <pre><code>Could not get any response
  
  There was an error connecting to http://ec2-x-x-amazonaws.com:3001/api/login.
  </code></pre>
  
  <p>how can we run multiple node/express projects in available/defined ports?</p>
  
  <pre><code>3001    tcp 0.0.0.0/0, ::/0 ✔
  3000    tcp 0.0.0.0/0, ::/0 ✔
  </code></pre>
  
  <p>Some ports running without add as an inbound rule like 8088, 8089.</p>
  
  <p><strong>pm2</strong> status shows all ports are running fine.</p>
  
  <p><a href="https://i.stack.imgur.com/AGgzu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AGgzu.png" alt="enter image description here"></a></p>
  
  <p>The <code>pm2 list</code> is above and <code>id 8</code> have port number <code>3001</code> </p>