无法访问 127.0.0.1 [英] Can't access 127.0.0.1

查看:34
本文介绍了无法访问 127.0.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是什么时候开始发生的,但结果是 - 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 和实际 IP 地址都可以正常工作
  2. 我的主机文件没有什么特别的
  3. ping 127.0.0.1 和 tracert 工作正常
  4. 所有硬编码为 127.0.0.1 的程序都无法运行(这一点最让我失望,因为在这种情况下我无能为力)

我还能做些什么来确定问题的根源并解决它?

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

更新:一旦 Redis 在 127.0.0.1 上运行并且 IIS 和 AzureStorageEmulator 都不起作用,我认为这只是 HTTP 问题.

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.

推荐答案

只需一个命令即可

netsh http 添加 iplisten 127.0.0.1

netsh http add iplisten 127.0.0.1

这篇关于无法访问 127.0.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆