title: How do i make my IP public, Externally can access my localhost
body: <p>I just want to make my IP public, so that it can be accessed from any where.I am using <code>ubuntu 18.04</code>. Already installed apache2 and PHP. The index file located in <code>/var/www/html/example.com/public_html/index.php</code>. In local host it is running and with in the same network i am able to access my website. Also made some changes in firewall.</p>
  
  <p>here is my <code>/etc/hosts</code> file configuration</p>
  
  <pre><code>127.0.0.1       localhost
  127.0.1.1       amal
  
  127.0.0.1       www.example.com
  127.0.0.1       example.com
  </code></pre>
  
  <p>And <code>etc/apache2/sites-avaliable/example.com.conf</code> file configuration</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerName      www.example.com
          ServerAlias     example.com
          ServerAdmin admin@example.com
          DocumentRoot /var/www/html/example.com/public_html
          ErrorLog /var/www/html/example.com/log/error.log
          CustomLog /var/www/html/example.com/log/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>with this configuration i am able to access this webpages with my IP(192.168.255.24) any locally connected device.
  Now i want to public my IP and can access these webpages from anywhere, I don't know much about this. I followed some tutorials but failed.
  This is Firewall status</p>
  
  <p>command</p>
  
  <pre><code>ufw status
  
  outputStatus: active
  
  To                         Action      From
  --                         ------      ----
  Apache Full                ALLOW       Anywhere                  
  80                         ALLOW       Anywhere                  
  443                        ALLOW       Anywhere                  
  8080                       ALLOW       Anywhere                  
  Apache Full (v6)           ALLOW       Anywhere (v6)             
  80 (v6)                    ALLOW       Anywhere (v6)             
  443 (v6)                   ALLOW       Anywhere (v6)             
  8080 (v6)                  ALLOW       Anywhere (v6)
  </code></pre>
  
  <p>And in my jiofi router portforward included my <code>192.168.255.24</code> with port <code>80</code>
  but when ever i tried to access my website with the global IP, got from <code>canyouseeme.org</code> it displays <code>The connection has timed out</code>. How to solve this problem please help</p>