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