mac see what is running on port 5532 code example Example: netstat listening port 8080 mac lsof -nP -iTCP:$PORT | grep LISTEN