how to close open ports on mac code example
Example 1: how to close a port mac
sudo lsof -i :5955
Example 2: kill port mac terminal
sudo lsof -i <Port>
sudo kill -9 <PID>
sudo lsof -i :5955
sudo lsof -i <Port>
sudo kill -9 <PID>