This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss

安装ESET或者nod32 不能打开localhost但是能打开127.0.0.1

261 views 0 comments last modified about 10 years ago Raymond Tang

In this page

昨天又重新安装了ESET,可是安装后遇到了一个问题就是127.0.0.1可以打开网页,但是localhost却不能,于是自己ping了一下,出现了以下结果:

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>ping localhost

Pinging raymond [::1] with 32 bytes of data:

Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>ping6 localhost

Pinging localhost [::1]
from ::1 with 32 bytes of data:

Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>ping6 ::1

Pinging ::1
from ::1 with 32 bytes of data:

Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms
Reply from ::1: bytes=32 time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>

从上面的结果可以看出,问题的关键是当我试图通过localhost 访问127.0.0.1时候,首先是通过ipv6来解析的,由于ipv6 的::1上并没有监听,所以打不开网页。

C:\WINDOWS\system32\drivers\etc\hosts 文件的内容如下:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
127.0.0.1 localhost
# *********以下内容为360安全卫士为免疫机器狗木马病毒所添加******************


# *********结束******************

是完全正确的。

于是在网上搜索了很多解决方案比如在Hosts文件中添加

# IPV6 versions of localhost
::1 ipv6-localhost ipv6-loopback localhost
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhostsf

但是还是不能解决问题,因为我的电脑是Xp,而能够使用此方法解决问题的是Vista的操作系统。

于是自己尝试了下360安全卫士为了免疫机器狗而把那些域名设置到127.0.0.1,结果输入那些被免疫的域名确实是定位到了127.0.0.0也就是说只要不用localhost来定位到127.0.0.1,比如127.0.0.1 local则是可以打开网页的,因为localhost在ipv4之前被ipv6解析了....

那又该怎么解决这个问题呢?大家不知道有没有好的解决办法?除了卸载ipv6之外的办法。我个人觉得肯定是有办法的,因为之前安装卡巴斯基的时候就可以的,但是现在换成了ESET后就出现了这个问题,估计是ESET防火墙的设置或者过滤等有问题?或者是由于安装ESET导致一些规则被改变了?

迫于无奈自己卸载了ipv6 然后重新安装 居然又可以了

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>netsh
netsh>int
netsh interface>ipv6
netsh interface ipv6>install
确定。

netsh interface ipv6>isatap
netsh interface ipv6 isatap>set router *.*.*.*
确定。

netsh interface ipv6 isatap>

如果大家遇到类似的问题不防考虑把ipv6协议先卸载然后再安装

Related pages

Surface RT/Pro 版本Windows 8 QQ下载与安装

2578 views   0 comments last modified about 5 years ago

Surface的用户可能会遇到一个难题,在应用商城里边无法搜索到QQ应用程序。但是让我疑惑的是,我的Windows 8.1 系统之前是成功安装了QQ。

后来在腾讯QQ下载官网发现,其实是有QQ应用安装的链接:

按照如下方法安装Surface QQ.

Have fun!

image

View detail

my first begining with Windows 7

117 views   0 comments last modified about 9 years ago

Maybe it is a little late now due to busy work,anyhow,it is better to do lately than never to do.

View detail

[教程]在Windows Phone 程序中使用LINQ to XML以及执行数据绑定

280 views   0 comments last modified about 7 years ago


LINQ是Language Integrated Query的简写,中文名称是语言集成查询,它是一组技术的组合,包括LINQ to DataSet(typed 以及untyped),LINQ to SQL(适用于SQL Server数据库),LINQ to XML(包括内存中以及XML文件中的数据),LINQ to Object,LINQ to Entities(结合Entity Framework使用)等。这些技术建立在将查询功能直接集成到 C# 语言(以及 Visual Basic 和可能的任何其他 .NET 语言)的基础上。借助于 LINQ,查询现在已是高级语言构造,就如同类、方法、事件等等。具体参考MSDN文档介绍View detail

SVN 中文子目录权限失效的解决方案

256 views   0 comments last modified about 9 years ago

svn对于非英文文件名和目录名使用utf-8格式编码处理,要对中文目录进行正确控制,
对于authz文件应该使用无BOM的utf-8格式,如何将默认的文件转为utf-8?可以使用UltraEdit编辑器存储的时候把格式选择“UTF-8 无BOM”;

View detail

LINQ to SQL in Windows Phone 7 Error: An overflow occurred while converting to datetime.

467 views   0 comments last modified about 7 years ago

Resolve the issue in Linq to SQL in Windows Phone 7 App:
An overflow occurred while converting to datetime.

View detail

Add comment

Please login first to add comments.  Log in New user?  Register

Comments (0)

No comments yet.