title: Node.js serving a HTML file on a remote network
body: <p>I'm a Node.js newb, so I'm not sure if it's possible to do what I'm trying to accomplish. Here is my configuration:</p>
  
  <p>I have a Node.js server running on a Raspberry Pi on my home network. I have an HTML file on an external IP. I wish to render React components on this HTML file.</p>
  
  <p>From what I've seen, people have used Node servers to display js on a local HTML file, so the path would normally look like this, assuming the directory is called 'dir':</p>
  
  <pre><code>const express = require('express');
  const app = express();
  
  // Static Routes
  app.use('/dist', express.static(path.join(__dirname, 'dir')));
  
  // App Route
  app.get('/', (req, res, next) =&gt; res.sendFile(path.join(__dirname, 
  'index.html')));
  </code></pre>
  
  <p>Which, to my knowledge, transfers the HTML file found at the previously specified path. But where is this transferred to? Any way I can specify the path name based on an external IP + user + password, and file path?</p>