在Unity中ping得到的TTL一直是128

clear chen 1 Reputation point
2020-05-26T08:32:22.887+00:00

代码如下:

Ping ping = new Ping();
var result = ping.SendPingAsync(“www.baidu.com”);
PingReply pingReply = result.GetAwaiter().GetResult();

pingReply 中的TTL一直是128

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,882 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 17,700 Reputation points
    2023-08-27T06:00:41.1033333+00:00

    The TTL (Time to Live) value indicates the maximum number of hops allowed for a network packet to traverse through the network. Normally, TTL decreases as the packet passes through each network node, so the TTL value you see might vary due to network structure.

    0 comments No comments