This is a modified version of the soconnect_mac.d
script that I first
learned about from this amazing blog post.
That blog post links to this script, but the script only sees connect() calls that were made to IPv4 addresses.
I've modified the script to work for IPv6 as well as IPv4.
sudo soconnect_mac.d
In a few words, this just shows you every connect()
call made by any process.
See the above-linked blog post for more details.