check which process is running on a port mac code example Example: mac process on port lsof -i tcp:3000