Mac Os Terminal Find Process by Port Number
Find process listening to an specific port number (Mac)
This has happens often enough to be a problem but not often enough for me to remember the command.
If you need to find the process listening to an specific port number, and then kill it, you can:
Find:
lsof -i :8000
Kill:
kill -9 <PID>