how to close all port that are used in mac code example Example: how to close a port mac sudo lsof -i :5955