how to stop server from listenting on mac code example Example: kill port mac terminal sudo lsof -i <Port> sudo kill -9 <PID>