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

2020-03-08 16:50:25 +08:00
 lenqu

所有结果都在 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 连接的是哪里的呢?

2523 次点击
所在节点    macOS
8 条回复
Satelli
2020-03-08 16:52:20 +08:00
https://support.apple.com/zh-cn/HT202944

5223 端口用于 Apple 推送。17.0.0.0/8 都是 Apple 的 IP 地址。
xfelix
2020-03-08 16:54:32 +08:00
Apple push notification
LagunAPaTa
2020-03-08 16:54:53 +08:00
icloud itunes 的登录 oscp 的更新 balabalabala 之类
lenqu
2020-03-08 18:51:12 +08:00
@Satelli 谢谢大佬,我这回知道 apple 的 ip 是真的多
lenqu
2020-03-08 18:59:55 +08:00
@LagunAPaTa
大佬知道这三个 ip 是哪里的么?
我查看了一下都是北京的,但是不知道是谁的 ip
111.206.109.244
111.206.109.248
111.206.109.120
LagunAPaTa
2020-03-08 21:32:17 +08:00
@lenqu 一般是一些数据中心的机房 CDN 之类的吧
shadowsockss
2020-03-09 12:44:12 +08:00
可以安装 wireshark 查看访问了哪些域名
lenqu
2020-03-09 13:47:35 +08:00
@LagunAPaTa 谢谢,好的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/650945

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX