【问题标题】:Ping request time out although web browser works on same computer尽管网络浏览器在同一台计算机上工作,但 Ping 请求超时
【发布时间】:2015-07-01 19:19:50
【问题描述】:

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

> ping stackoverflow.com

Pinging stackoverflow.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 stackoverflow.com

Tracing route to stackoverflow.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

同样的结果。 :-)

【问题讨论】:

    标签: windows windows-7 cmd ping


    【解决方案1】:

    某些主机的防火墙会阻止 ICMP (http://ca.wikipedia.org/wiki/Internet_Control_Message_Protocol) 数据包,例如 ping。您可以使用 traceroute(命令行工具或在线网站,如 http://ping.eu/traceroute/)或 tcptraceroute (http://linux.die.net/man/1/tcptraceroute)。

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

    希望对你有帮助

    【讨论】:

    • 也可能是他路由器上的防火墙规则。我对自己也做过同样的事情。 :X
    • @PhilWalton 我在一家咖啡馆,使用它的路由器。有没有办法判断是不是网吧的路由器?
    • @ShaunLuttin 你可以使用ping google.com 如果你仍然收到一个丢失的数据包,那是因为你(路由器、硬件防火墙、软件防火墙......)正在阻止数据包
    • @nada 我正在使用ping stackoverflow.com,所以这可能是等价的,嗯?
    • @ShaunLuttin 是的,但我知道 google.com 接受 ICMP 数据包,所以如果您无法 ping google.com,那是因为防火墙左右。如果可以,请使用TCPtraceroute。您可以使用此工具指定端口 80,并且几乎所有情况下端口 80 都是开放的
    猜你喜欢
    • 2021-12-02
    • 2017-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-24
    • 1970-01-01
    • 2021-07-19
    相关资源
    最近更新 更多