title: How to connect to node.js server from any ip
body: <p>I want to create a private backend for an application I want to make, but I am having trouble connecting to my node server, I have the basic stuff right now,</p>
  <pre><code>var http = require(&quot;http&quot;);
  
  http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/html'});
      res.end('&lt;html&gt;&lt;body&gt;&lt;h1&gt;Hello World&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;');
  }).listen(3000);
  
  console.log('Server running on port 300.')
  </code></pre>
  <p>But this only works for https://localhost:3000/, how do I make it so that if I have a separate computer on a separate connection, I can connect to this server?</p>
  <p>I am not interested in just opening it to everyone but just to specific client IP's...</p>