title: xampp blocking remote external connections
body: <p>I have read several questions here and still nothing is working.</p>
  
  <p>I am trying to access my test site from a remote computer (either network or wan but i need wan eventually)</p>
  
  <p>I just re-downloaded the newest XAMPP for windows 10.</p>
  
  <p>I can go to localhost (also the other 3 names I setup in the host file to redirect to localhost) and of course 127.0.0.1 (localhost).</p>
  
  <p>If I try and use my ip address of the computer or someone else trys my ip address on their computer, we get page cant be found (from chrome)</p>
  
  <p>If I check apache access logs I see nothing about an access attempt.</p>
  
  <p>Netstat -a shows these two records</p>
  
  <pre><code>TCP  0.0.0.0:80
  TCP  0.0.0.0:443
  TCP  [::]:80
  TCP  [::]:443
  </code></pre>
  
  <p>I have gone to Windows Firewall -> Advanced Settings -> Inbound rule.  Here it shows that appache has 2 rules, one for UDP and one for TCP allowing all ports.</p>
  
  <p>I have gone to my rounter and port forwarded 80 &amp; 443 (which is what xampp is running on) and still nothing</p>
  
  <p>I even have put my computer in a DMZ.  I also turned off the windows firewall.  (all back on after testing of course this is dangerous).</p>
  
  <p>Xampp has no locationmatch in xampp-http.conf like other questions.</p>
  
  <p>My vhost file has the directory setup like this:</p>
  
  <pre><code> &lt;Directory "C:/Users/username/Desktop/git repos/stats-website"&gt;
     AllowOverride All
     Order Allow,Deny
     Allow from all
     Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>This is my testing rig and I am now testing an API that is being accessed externally before I send it to the production server.  I have been at this for 2 days and out of all possibilities</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have solved the issue somewhat.  I can now get to it from everything except localhost or 127.0.0.1</p>
  
  <p>In httpd.conf I changed it from just Listen 80 to Listen pcipaddress:80.  I thought listen 80 defaulted to binding on more than just localhost</p>
  
  <pre><code># Change this to Listen on specific IP addresses as shown below to 
  # prevent Apache from glomming onto all bound IP addresses.
  #
  Listen 192.168.1.241:80
  #Listen 80
  </code></pre>
  
  <p>How do I do it so it works both localhost and also remote connections?</p>