5 ms·
Others have suggested `lsof` to find out which ports are in use and by whom. I'll also add `netstat -nlp` or the more modern `ss -ntlp` to achieve the same. The
by simiones 5y ago
Others have suggested `lsof` to find out which ports are in use and by whom. I'll also add `netstat -nlp` or the more modern `ss -ntlp` to achieve the same. They will show you which process is listening on which TCP port (with these flags).
- gnrlst 5y agoWill use next time! thanks for the tip.
- simiones 5y agoNo problem! We all know some limited amount about the huge computing environment, and accumulate solutions as we hit problems.
- phaer 5y agoCan't check myself, because I am not using MacOS, but isn't `ss` linux-specific? I think it still is (and will be) `netstat` on MacOS and BSDs?
- simiones 5y agoDon't use MacOS or any BSD, so you are quite possibly right.