title: Debian server, Node js Port 3000 listening But cant access via browser
body: <p>On my debian server, I installed node and then started node server on port 3000. The server is running, but it isn't visible from the browser</p>
  <p>Now when I try to get it running via my domain or via my ip(for example xx.xxx.xx.xx:3000) or my domain (my-domain.com:3000) in both cases it doesn't work. I think I don't quite get the concept and I tried to search for a billion different things, but I can't find the solution to my problem. Could someone tell me, if I need to setup something else, too?</p>
  <p>My server js code is</p>
  <pre><code>const express = require('express');
  const app = express();
  const http = require('http');
  const server = http.createServer(app);
  const { Server } = require(&quot;socket.io&quot;);
  const io = new Server(server);
   
  server.listen(3000, () =&gt; {
    console.log('listening on *:3000');
  });
  io.on('connection', function (socket) {
          socket.on( 'new_message', function( data ) {
              io.sockets.emit( 'new_message', {
              message: data.message,
              date: data.date,
              msgcount: data.msgcount
              });
      });
  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AnEGs.png" rel="nofollow noreferrer">Error i got</a></p>