Skip to main content

List current active connections on Mac OSX

Posted on

This is a handy little terminal script I’ve used a lot recently which lists the current active connections on OSX. It’s really handy for seeing if Apache / Node.js / Ruby stuff is running on ports correctly.

lsof -i | grep -E "(LISTEN|ESTABLISHED)"