Using Netstat on OS X

On macOS, netstat is a BSD-based tool that is still fully supported. It is great for seeing open connections, routing tables, and interface stats. When you want to see which process owns a connection or port, lsof is the tool to use.