title: NGINX reverse proxy from internal IP with :PORT
body: <p>I'm running two apps on a raspberry pi on my local network (at 192.168.1.95). I want to access them through my browser like this: </p>
  
  <pre><code>192.168.1.95:3000 = App One
  192.168.1.95:3001 = App Two
  </code></pre>
  
  <p>So my server blocks look like this: </p>
  
  <pre><code># App One
  server {
    listen *:3000;
    location / {
      proxy_pass http://127.0.0.1:3000;
    }
  }
  
  # App Two
  server {
    listen *:3001;
    location / {
      proxy_pass http://127.0.0.1:3001;
    }
  }
  </code></pre>
  
  <p>But, on my laptop, in the browser, when I navigate to 192.168.1.95:3000 it just spins forever. I restarted NGINX on my pi, and it didn't report any errors. What is it missing?</p>
  
  <p>Edits: </p>
  
  <ol>
  <li>I checked access logs and error logs. Nothing is there which makes
  me think my <code>192.168.1.95:3000</code> requests are not even getting to
  nginx.</li>
  <li>I'm open to other solutions. I would go for a subdomain, but I don't
      want DNS involved. It's a single internal IP with multiple websites and tools on it. I don't think
      <code>subdomain.192.168.1.95</code> works.</li>
  </ol>
  
  <p><strong>Solution</strong>: I am an idiot. I had UFW firewall on my pi blocking everything except 22, 80, 443. I exposed the ports I wanted and I'm good to go, without even needing nginx. </p>