V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lenqu
V2EX  ›  macOS

Mac OSX 为什么那么多的 TCP 链接呢?

  •  
  •   lenqu · 2020-03-08 16:50:25 +08:00 · 2523 次点击
    这是一个创建于 1720 天前的主题,其中的信息可能已经有所发展或是发生改变。

    所有结果都在 netstat -an | grep tcp 下所得

    一开机没联网之前

    tcp6 0   0   *.49152 . LISTEN
    tcp4 0   0   *.49152 . LISTEN

    联网以后

    tcp4     0     0 192.168.0.102.49235   17.125.250.130.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49232   17.248.156.108.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49230   111.206.109.244.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49216   17.250.120.17.443     ESTABLISHED
    tcp4     0     0 192.168.0.102.49215   17.248.152.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49212   17.248.152.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49211   17.248.152.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49210   17.248.152.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49209   17.248.152.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49199   111.206.109.244.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49198   111.206.109.244.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49197   17.250.120.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49196   17.250.120.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49195   17.250.120.145.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49184   40.100.54.18.443     ESTABLISHED
    tcp4     0     0 192.168.0.102.49183   17.250.120.241.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49182   17.250.120.241.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49181   17.250.120.241.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49173   17.248.156.104.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49172   17.248.156.104.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49163   111.206.109.248.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49161   111.206.109.248.443   ESTABLISHED
    tcp4     0     0 192.168.0.102.49160   17.252.204.85.5223   ESTABLISHED
    tcp6     0     0 *.49152           .             LISTEN  
    tcp4     0     0 *.49152           .             LISTEN  
    tcp4     0     0 192.168.0.102.49164   111.206.109.120.443   TIME_WAIT
    tcp4     0     0 192.168.0.102.49200   121.18.169.14.443     TIME_WAIT
    tcp4     0     0 192.168.0.102.49226   17.248.135.233.443   TIME_WAIT
    tcp4     0     0 192.168.0.102.49231   111.206.109.244.443   TIME_WAIT

    过一段时间以后就剩

    tcp4 0 0   192.168.0.102.49160 17.252.204.85.5223 ESTABLISHED
    tcp6 0 0   *.49152 . LISTEN
    tcp4 0 0   *.49152 . LISTEN

    有大佬能解释解释么?这个端口 5223 连接的是哪里的呢?

    8 条回复    2020-03-09 13:47:35 +08:00
    Satelli
        1
    Satelli  
       2020-03-08 16:52:20 +08:00   ❤️ 1
    https://support.apple.com/zh-cn/HT202944

    5223 端口用于 Apple 推送。17.0.0.0/8 都是 Apple 的 IP 地址。
    xfelix
        2
    xfelix  
       2020-03-08 16:54:32 +08:00   ❤️ 1
    Apple push notification
    LagunAPaTa
        3
    LagunAPaTa  
       2020-03-08 16:54:53 +08:00   ❤️ 2
    icloud itunes 的登录 oscp 的更新 balabalabala 之类
    lenqu
        4
    lenqu  
    OP
       2020-03-08 18:51:12 +08:00
    @Satelli 谢谢大佬,我这回知道 apple 的 ip 是真的多
    lenqu
        5
    lenqu  
    OP
       2020-03-08 18:59:55 +08:00
    @LagunAPaTa
    大佬知道这三个 ip 是哪里的么?
    我查看了一下都是北京的,但是不知道是谁的 ip
    111.206.109.244
    111.206.109.248
    111.206.109.120
    LagunAPaTa
        6
    LagunAPaTa  
       2020-03-08 21:32:17 +08:00
    @lenqu 一般是一些数据中心的机房 CDN 之类的吧
    shadowsockss
        7
    shadowsockss  
       2020-03-09 12:44:12 +08:00
    可以安装 wireshark 查看访问了哪些域名
    lenqu
        8
    lenqu  
    OP
       2020-03-09 13:47:35 +08:00
    @LagunAPaTa 谢谢,好的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5137 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:32 · PVG 17:32 · LAX 01:32 · JFK 04:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.