sockstat

List open Internet or UNIX domain sockets. Note: This program is a rewrite for NetBSD 3.0 from FreeBSD’s sockstat. See also: netstat. More information: https://man.netbsd.org/sockstat.1.

sockstat

sockstat -{{4|6}} -l -P {{tcp|udp|sctp|divert}} -p {{port1,port2...}}

sockstat -cu

sockstat -n

sockstat -f {{inet|inet6|local|unix}}