title: How to fix localhost refused to connect on Windows 10 Wamp server and Xampp?
body: <p>I've installed WAMP Server on Windows 10 and it was working fine. But when I try to load <strong>localhost</strong> today it gives me <strong>refused to connect</strong> error. I've read some questions on Stack Overflow and tried their answers but no luck.</p>
  
  <ul>
  <li>Re-installed wamp (also tried xampp. non of these work)</li>
  <li>IIS is off</li>
  <li>Web Development.. thing in services is not running.</li>
  <li>Tried <strong>netstat -aon</strong> and port 80 PID is same as wampapache64 process.</li>
  <li>changed listening port to 81 in httpd.conf in wamp => apache =></li>
  <li>Cleared browser cache</li>
  <li>Wamp icon is <strong>green</strong></li>
  <li>Can't connect using 127.0.0.1</li>
  </ul>
  
  <p>Nothing works.</p>
  
  <p>Screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/rM9Yi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rM9Yi.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/1DDCT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1DDCT.png" alt="PID is 7724"></a></p>
  
  <p><a href="https://i.stack.imgur.com/tI9QD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tI9QD.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/PtpY9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PtpY9.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/KEe0M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEe0M.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/MUIQV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MUIQV.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/zdKva.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zdKva.png" alt="enter image description here"></a></p>