2

Looks like localhost is not working. For this example I will use 192.192.92.92 as my ip address!

Starting by the C:\Windows\System32\drivers\etc\host:

#
127.0.0.1 localhost
::1 localhost

IIS binding:

Type: http
IP address: All Unasigned (there is no 127.0.0.1 or localhost in the list)
Port: 80
hostName: -blank-

When I start the server and click browse in ISS it opens the browser with the following error:

DEMO 1

The strange thing with this is that it works perfectly fine with a custom host name!

C:\Windows\System32\drivers\etc\host:

#
127.0.0.1 localhost
::1 localhost

192.192.92.92 myCustomHostName.com

IIS binding:

Type: http
IP address: 192.192.92.92
Port: 80
hostName: myCustomHostName.com

DEMO 2


My main objective is to figure out how to find a way to run the IIS app on the localhost again. It used to work before, but I think uninstalling APACHEE - XAMPP confused everything in IIS and now there is no 127.0.0.1!

Stuff I have tried and didn't work for me:

Youtube:

  1. Error || PhpMyAdmin || Login AllowNoPassword Error - Solved-
  2. How to Restrict access to the phpMyAdmin by IP Address
  3. https://www.youtube.com/watch?v=BX57ooAulsY
  4. How To Change User Password In phpMyAdmin If You're Locked Out Of Your Site | WP Learning Lab
  5. Error || PhpMyAdmin || Login AllowNoPassword Error - Solved-
  6. access denied for user 'root'@'localhost' (using password yes or no)

SO:

  1. Setting up 'localhost' equivalent bindings with IIS7
  2. Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when i try to access my project on live server
  3. How to change the ip address of phpmyadmin MySQL?
Loizos Vasileiou
  • 674
  • 10
  • 37
  • Remove other settings in the Hosts file. there is no need to specify localhost to correspond the 127.0.0.1 address. What about typing the 127.0.0.1 IP address in the browser address bar? – Abraham Qian Jul 15 '20 at 09:37
  • I tried removing everything from hosts, reset the bindings to "all unasigned" and blank host name. I tried running `localhost` and `127.0.0.1` on the browser but neither work for me! Although `192.192.92.92` seems to be working fine! – Loizos Vasileiou Jul 15 '20 at 11:29
  • I have also tried changing the ip address to `127.0.0.1` in the bindings and also didn't work! I tried it with and without the hosts – Loizos Vasileiou Jul 15 '20 at 11:33
  • Can you Ping Localhost/127.0.0.1 successfully? If it indeed works, this demonstrates local NIC/Network driver has no problem. I suspect there is something wrong with the application. please try to create a new website in the IIS and re-set up the Http binding. – Abraham Qian Jul 16 '20 at 08:18
  • @LoizosVasileiou Did you solve this, eventually? – Ravindra Apr 29 '21 at 07:51

0 Answers0