尽管 Web 浏览器在同一台计算机上运行,​​但 Ping 请求超时

Ping request time out although web browser works on same computer

我现在在万维网上,在 Whosebug 上发帖就是证明。但是,如果我尝试从命令行 ping whosebug.com,ping 会超时。我需要做什么才能使 ping 正常工作?

> ping whosebug.com

Pinging whosebug.com [198.252.206.140] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 198.252.206.140:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

编辑,试试tracert

> tracert whosebug.com

Tracing route to whosebug.com [198.252.206.140] over a maximum of 30 hops:

  1     *        *        *     Request timed out.
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *        *        *     Request timed out.
  7     *        *        *     Request timed out.
  8     *        *        *     Request timed out.
  9     *        *        *     Request timed out.
 10     *        *        *     Request timed out.
 11     *        *        *     Request timed out.
 12     *        *        *     Request timed out.
 13     *        *        *     Request timed out.
 14     *        *        *     Request timed out.
 15     *        *        *     Request timed out.
 ...
 Trace complete.

Request timed out. 一直到 30 跳。

编辑,试试ping google.com

同样的结果。 :-)

有些主机有阻止 ICMP 的防火墙 (http://ca.wikipedia.org/wiki/Internet_Control_Message_Protocol) packets like ping. You can use traceroute (cmd line tool or online webs like http://ping.eu/traceroute/) or tcptraceroute (http://linux.die.net/man/1/tcptraceroute)。

一些路由器还有阻止 ICMP 的防火墙。您可以通过 ping google.com 检测到这一点。它失败了,那么是你的本地路由器有问题,而不是远程主机。

希望对您有所帮助