title: Can't access NGINX server in local network
body: <p>I'm unable to connect to my nginx server hosted on my Linux Mint Distro through other local machines. I can connect fine through localhost or 127.0.0.1 on the same computer.</p>
  
  <p>On my phone if I type in the local IP of the computer in Chrome/Firefox shows up as "Unable to connect". I can ping the computer and receive data back, and vice versa, but nginx will not connect.</p>
  
  <p>The local IP is 192.168.1.54 and the IP of my phone is 192.168.1.56</p>
  
  <p>Tried using server_name 192.168.1.54 and server_name 192.168.1.56, none worked.</p>
  
  <p>Tried enabling ufw and adding http and https as rules, didn't work. Still unable to connect. I'm stumped.</p>
  
  <pre><code>        # Default server configuration
      #
      server {
          #listen 80 default_server;
          #listen [::]:80 default_server;
  
          listen 80;
          listen [::]:80;
  
          # SSL configuration
          #
          # listen 443 ssl default_server;
          # listen [::]:443 ssl default_server;
          #
          # Note: You should disable gzip for SSL traffic.
          # See: https://bugs.debian.org/773332
          #
          # Read up on ssl_ciphers to ensure a secure configuration.
          # See: https://bugs.debian.org/765782
          #
          # Self signed certs generated by the ssl-cert package
          # Don't use them in a production server!
          #
          # include snippets/snakeoil.conf;
  
          root /var/www/test;
  
          # Add index.php to the list if you are using PHP
          index index.php index.html index.htm index.nginx-debian.html;
  
          server_name _;
  
          location / {
              # First attempt to serve request as file, then
              # as directory, then fall back to displaying a 404.
              try_files $uri $uri/ =404;
          }
  
          # pass PHP scripts to FastCGI server
          #
          location ~ \.php$ {
              include snippets/fastcgi-php.conf;
          #   # With php-fpm (or other unix sockets):
              fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
          }
  
      }
  
  </code></pre>
  
  <p>"Unable to connect" when typing in the nginx server's IP address in the browser from other local machines on the same network.</p>
  
  <p>No error messages or access logs show up when attempts are made in /var/log/nginx/</p>