Lots of CLOSED tcp6 ports shown in netstat

Netstat shows lots of CLOSED tcp6 connections. Before my last reboot it was more than 30000 and new outgoing IPv6 connections were no longer possible. Any idea how to find out which process causes them?


MacOS Ventura 13.2, arm64 (Mac Studio)


Example:


netstat -anv -f inet6 
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)      rhiwat  shiwat    pid   epid state  options           gencnt    flags   flags1 usscnt rtncnt fltrs
...
tcp6       0      0  *.51782                *.*                    CLOSED      7405568 7405568      0      0 00080 00000008 0000000000145230 00000002 00100800      1      0 000001
tcp6       0      0  *.51778                *.*                    CLOSED      7405568 7405568      0      0 00080 00000008 0000000000145029 00000002 00100800      1      0 000001
tcp6       0      0  *.51775                *.*                    CLOSED      7405568 7405568      0      0 00080 00000008 0000000000144fc0 00000002 00100800      1      0 000001
tcp6       0      0  *.51773                *.*                    CLOSED      7405568 7405568      0      0 00080 00000008 0000000000144f85 00000002 00100800      1      0 000001

Mac Studio, macOS 13.2

Posted on Feb 10, 2023 5:03 AM

Reply

Similar questions

5 replies

Feb 11, 2023 6:44 AM in response to wolfgang66

wolfgang66 wrote:

lsof shows sockets in open or in listen state. It does not show CLOSED ones. Now at 205 CLOSED sockets.


Yes, and the sockets that are in closed were once open, and I’d be curious if those stuck-closed ports are all arising from a particular app. Whether those are closed sockets from a malfunctioning app, or maybe where (for instance) something such as a firewall or add-on security app is getting involved. Orbtangled.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Lots of CLOSED tcp6 ports shown in netstat

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.