Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't access 127.0.0.1

I can't figure out when this started to happen, but the result is - 127.0.0.1 is not working on any port from anywhere (for example, browser says Unable to connect). Here are the results of my research:

  1. localhost, COMPUTER_NAME and actual IP address all work fine
  2. there is nothing special in my hosts file
  3. ping to 127.0.0.1 and tracert do work fine
  4. all the programs that have 127.0.0.1 hardcoded are not working (this point makes me disappointed the most, because I can't do anything in this case )

What else can I do to identify the source of problem and fix it?

UPDATE: as soon as Redis does work on 127.0.0.1 and both IIS and AzureStorageEmulator don't work I assume this is HTTP only issue.

like image 910
Lanayx Avatar asked Dec 31 '15 08:12

Lanayx


People also ask

Why is 127.0 0.1 refused to connect?

0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on the loopback address . So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.

How do I connect to localhost?

To access the server from itself, use http://localhost/ or http://127.0.0.1/ . To access the server from a separate computer on the same network, use http://192.168.X.X where X.X is your server's local IP address. You can find the sever's local IP address (assuming it's Linux) by running hostname -I . 127.0.

What is the IP address 127.0 0.1 used for?

0.1, the IP address of the local computer. This IP address allows the machine to connect to and communicate with itself. Therefore, localhost (127.0. 0.1) is used to establish an IP connection to the same device used by the end-user.


1 Answers

Just one command did the work

netsh http add iplisten 127.0.0.1

like image 92
Lanayx Avatar answered Oct 26 '22 23:10

Lanayx