mac how to find out what is runinng on a port code example Example: mac terminal find process by port sudo lsof -i tcp:3000