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

localhost redirects to my IP (1 reply)

$
0
0
I had to recently wipe my PC and I'm setting up my development environment again using WAMP.

After installing WAMP, if I visit [localhost] instead of seeing the WAMP homepage I get redirected to [x.x.x.x], where x.x.x.x is my IP.

I had this issue on another PC and after setting the inbound rules for Apache HTTP Server in my Windows Firewall settings to allow all domains it fixed the issue. I applied this to my PC, and the issue does not seem to be present for Internet Explorer, whereas for Chrome and Firefox the localhost to my IP redirect issue persists even after clearing the cache for each browser.

My C:\Windows\System32\drivers\etc\hosts file looks like this:

127.0.0.1 localhost
::1 localhost

and my firewall rules look like this:

[i.stack.imgur.com]

I am not currently using vhosts and I'm on a network at my workplace (if that has any implications?)

I also encountered the same issue when using Laragon (see [laragon.org]) which uses vhosts and whenever I visited a virtual host, e.g. mysite.dev it didn't work properly either.

My question on the Laragon forum: [forum.laragon.org]
My question on SO: [stackoverflow.com]

Viewing all articles
Browse latest Browse all 3177

Trending Articles



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