How to find which process is listening to specific port? Mar 25, 2015 lsof -i tcp:<port> works on both mac&linux sudo netstat -nlp ^^ wont work under macos