I’ve installed WAMP Server on Windows 10 and it was working fine. But when I try to load localhost today it gives me refused to connect error. I’ve read some questions on Stack Overflow and tried their answers but no luck.
- Re-installed wamp (also tried xampp. non of these work)
- IIS is off
- Web Development.. thing in services is not running.
- Tried netstat -aon and port 80 PID is same as wampapache64 process.
- changed listening port to 81 in httpd.conf in wamp => apache =>
- Cleared browser cache
- Wamp icon is green
- Can’t connect using 127.0.0.1
Nothing works.
Screenshots:
2
Answers
Try the hosts file with only the initial records and test.
127.0.0.1 localhost
::1 localhost
If you are facing the error from the apache errors log file
then do the following:
* Run ‘command prompt’ as administrator and run the command
netsh winsock reset
. and restart the PC.firstly, uninstall wampp as well as xampp server from your PC. Also delete the wampp/xampp folders in C drive.
then install wampserver 2.0i from the link below-
wampserver 2.0i
after installation, start wamppserver and try to open localhost in chrome browser.
if localhost doesnt work, then try localhost:80
hope it helps!!