Lsof is an extremely powerful unix diagnostic tool. Its name stands for LiSt Open Files, and it does just that. It lists information about any files that are open by processes currently running on the system. It easily pinpoints which process is using each network connection / open port.
2b5754c7e622dddba5c5a239bc5a2d98728bd9c47f904ac552bc93a627dffe31