Commands to find and kill ports running on MacOS View ports listening sudo lsof -nP -iTCP -sTCP:LISTEN View port listening on port provided lsof -i :3000 Kill port force kill -9 $(lsof -t -i :3000) Kill port soft kill $(lsof -t -i :3000)