title: NodeJS only listens on localhost
body: <p>I have developed a <a href="https://nestjs.com/" rel="nofollow noreferrer">NestJS Server</a> application. NestJs is a node server running with express written in TypeScript. </p>
  
  <p>Now I want to deploy the application on my rapsberry pi. However, I'm only able to access the server from localhost. If I try to access from a different client no content is returned. (The "^C" in the picture is only the cancel sign ;D)</p>
  
  <p>I already set the hostname to <code>0.0.0.0</code>. What else can I do?</p>
  
  <pre><code># /src/main.ts 
  import {NestFactory} from '@nestjs/core';
  import {AppModule} from './app.module';
  
  async function bootstrap() {
    const app = await NestFactory.create(AppModule);
    app.enableCors();
    await app.listen(3001, '0.0.0.0');
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/97mCJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97mCJ.png" alt="See picture"></a></p>