how to see what process has got which port on mac code example Example: mac process on port lsof -i tcp:3000