Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Cannot connect to localhost - ERR_CONNECTION_REFUSED (4 replies)

$
0
0
I have been happily using WAMPSERVER for 10 years and suddenly a few days ago I can no longer reach localhost on my machine. The only change to my configuration was a Windows 10 update to 19045.2728. I have worked on this for at least 10 hours, following as many suggestions as I can find online and none have worked. Here's a description of the problem, my configuration and what I have tried so far. If I have been affected by this update, I suspect others have too.

Emotional plea - I really hope someone has a suggestion or two.

PROBLEM
I get the error ERR_CONNECTION_REFUSED, when going to [localhost]. (The URL jumps over to [localhost], not sure that matters or if that is different than before the Windows update).

WHAT WORKS:
Pings to localhost and 127.0.0.1
All the lights are Green in wampserver (full wampserver configuration is shown below).

WHAT I'VE TRIED SO FAR
A. With my original installation of wampserver which has been installed and running successfully since mid 2022:
1. Uninstalled the latest Windows 10 update. Unfortunately, MS does not allow this update to be fully removed. This update took me to Windows 10 19045.2728
2. Changed port number for Apache from 80 to 8080. In httpd.conf and httpd-vhosts.conf
3. Disabled the windows firewall
4. Cleared browser cache
5. Tried 127.0.0.1 instead of localhost
6. Tried adding :80 or :8080 after [localhost]
7. Tried different browsers (chrome, mozilla, bing)
8./ Flush the DNS (ipconfig /flushdns)
9. Restart WAMP services
10. Moved to Windows 11 with the hope of fixing it, but to no avail so I came back to 10.

B. With a fresh installation of wampserver
(Given the genesis of this error, it is unlikely that it has anything to do with wampserver, but installing a new version reflects my level of desperation.)
Same error as before. Unable to reach localhost. No changes to the default configuration including the location of localhost (DocumentRoot "${INSTALL_DIR}/www")

ANSWERS TO REQUIRED WAMPSERVER QUESTIONS for making a post on this site:
1 - Windows version used (Specify version number AND whether 32 or 64 bit)
>> Windows 10, build 19045.2728, 64 bit

2 - Version WampServer (Specify version number AND whether 32 or 64 bit)
64 bit, 3.3.0

3 - Apache Version
>> 2.4.54.2

4 - PHP Version
>> 8.2

5 - MySQL Version
>> 5.2

6 - What color is the WampServer icon (in the notification area of the taskbar)
>>GREEN

7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?
127.0.0.1 localhost
::1 localhost

If the WampServer icon is green:

8 - Do you have access to localhost (Homepage WampServer)?
NO!

8a - If so, is there an error message at the bottom of the page?
Error is "ERR_CONNECTION_REFUSED"

9 - Do you have access to phpMyAdmin?
YES, to [localhost]

10 - If you refer to an error message, please include the EXACT wording of the error in your post
>> Done, see #8a

11 - If you use an Antivirus and / or Firewall, please include the names of these
>> Windows Antivirus and Firewall. With Windows 10 there are Firewalls 3: Domain Network, Private Network, Public Network. All 3 have been disabled.

12 - What is the full path to the installation of WampServer (eg D:\wamp\)
C:\wamp64

13 - If you have one or more Virtual Hosts defined, please show their definition(s)
Only
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>