为什么“netstat”没有显示我所连接的服务器的 IP?

为什么“netstat”没有显示我所连接的服务器的 IP?

我有一个音频流来自通过获得的 Youtube 视频youtube-dl -g <URL>(此命令输出两个链接,分别用于视频和音频)。它们具有以下形式:https://rr1---sn-uqx2-w50l.googlevideo.com/videoplayback?...

的 iprr1---sn-uqx2-w50l.googlevideo.com181.64.63.12

> ping rr1---sn-uqx2-w50l.googlevideo.com

Pinging rr1.sn-uqx2-w50l.googlevideo.com [181.64.63.12] with 32 bytes of data:
Reply from 181.64.63.12: bytes=32 time=11ms TTL=123
Reply from 181.64.63.12: bytes=32 time=10ms TTL=123
Reply from 181.64.63.12: bytes=32 time=10ms TTL=123
Reply from 181.64.63.12: bytes=32 time=11ms TTL=123

netstat -an当此链接正在播放时我跑甚高频但这个 IP 没有显示出来,这是为什么?(我用的是 Windows 10)

> netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:53             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:554            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1536           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1537           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1538           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1539           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1540           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1542           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2090           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2869           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5040           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:8000           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:9443           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:10243          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:33060          0.0.0.0:0              LISTENING
  TCP    127.0.0.1:5939         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:8631         127.0.0.1:8632         ESTABLISHED
  TCP    127.0.0.1:8632         127.0.0.1:8631         ESTABLISHED
  TCP    169.254.121.209:139    0.0.0.0:0              LISTENING
  TCP    169.254.123.68:139     0.0.0.0:0              LISTENING
  TCP    172.27.64.1:139        0.0.0.0:0              LISTENING
  TCP    172.27.192.1:139       0.0.0.0:0              LISTENING
  TCP    192.168.1.18:139       0.0.0.0:0              LISTENING
  TCP    192.168.1.18:1687      198.252.206.25:443     ESTABLISHED
  TCP    192.168.1.18:1733      198.252.206.25:443     ESTABLISHED
  TCP    192.168.1.18:1777      38.90.226.39:80        CLOSE_WAIT
  TCP    192.168.1.18:1813      172.217.146.201:443    ESTABLISHED
  TCP    192.168.1.18:1822      172.64.148.218:443     ESTABLISHED
  TCP    192.168.1.18:1824      192.16.49.85:80        TIME_WAIT
  TCP    192.168.1.18:1825      108.158.107.120:80     TIME_WAIT
  TCP    192.168.1.18:1826      2.20.144.232:80        TIME_WAIT
  TCP    192.168.1.18:1828      142.250.78.97:443      ESTABLISHED
  TCP    192.168.1.18:1830      217.160.86.51:443      TIME_WAIT
  TCP    192.168.1.18:1832      217.160.86.59:443      TIME_WAIT
  TCP    192.168.1.18:1833      142.250.78.74:443      ESTABLISHED
  TCP    192.168.1.18:1838      217.160.86.61:443      TIME_WAIT
  TCP    192.168.1.18:1839      217.160.86.59:443      TIME_WAIT
  TCP    192.168.1.18:1841      217.160.86.61:443      CLOSE_WAIT
  TCP    192.168.1.18:1843      217.160.86.82:443      TIME_WAIT
  TCP    192.168.1.18:1844      157.240.197.15:443     ESTABLISHED
  TCP    192.168.1.18:1845      192.16.49.85:80        ESTABLISHED
  TCP    192.168.1.18:1846      157.240.197.35:443     ESTABLISHED
  TCP    192.168.1.18:1848      217.160.86.51:443      ESTABLISHED
  TCP    [::]:53                [::]:0                 LISTENING
  TCP    [::]:80                [::]:0                 LISTENING
  TCP    [::]:135               [::]:0                 LISTENING
  TCP    [::]:443               [::]:0                 LISTENING
  TCP    [::]:445               [::]:0                 LISTENING
  TCP    [::]:554               [::]:0                 LISTENING
  TCP    [::]:1536              [::]:0                 LISTENING
  TCP    [::]:1537              [::]:0                 LISTENING
  TCP    [::]:1538              [::]:0                 LISTENING
  TCP    [::]:1539              [::]:0                 LISTENING
  TCP    [::]:1540              [::]:0                 LISTENING
  TCP    [::]:1542              [::]:0                 LISTENING
  TCP    [::]:2090              [::]:0                 LISTENING
  TCP    [::]:2869              [::]:0                 LISTENING
  TCP    [::]:3306              [::]:0                 LISTENING
  TCP    [::]:5357              [::]:0                 LISTENING
  TCP    [::]:8000              [::]:0                 LISTENING
  TCP    [::]:9443              [::]:0                 LISTENING
  TCP    [::]:10243             [::]:0                 LISTENING
  TCP    [::]:33060             [::]:0                 LISTENING
  TCP    [::1]:53               [::]:0                 LISTENING
  TCP    [::1]:80               [::]:0                 LISTENING
  TCP    [::1]:443              [::]:0                 LISTENING
  TCP    [::1]:1541             [::]:0                 LISTENING
  TCP    [::1]:8000             [::]:0                 LISTENING
  TCP    [::1]:9443             [::]:0                 LISTENING
  UDP    0.0.0.0:53             *:*
  UDP    0.0.0.0:53             *:*
  UDP    0.0.0.0:123            *:*
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:4500           *:*
...

更新:
在图片中(我仅展示运行时的差异网络状态),左侧是甚高频打开时没有任何连接,右侧有连接。我们可以用红色看到差异。 在此处输入图片描述

所以只建立了一个连接。这是 CDN 吗?始终只有一个 CDN 连接?

答案1

与许多网站一样,YouTube 既不是单一服务器,也未由单一 IP 地址托管,而是利用大型 CDN 解决方案。

VLC 可以连接到不同的 IP 地址,然后youtube-dl 加载该视频流。使用netstat不带-n和而不是 IP,您应该会看到主机名,这可能会更容易识别它们

相关内容