Friday, February 26, 2021

Find pid for specific port on Mac OS

RUN: lsof -i tcp:8085


  1. Run any one of the following command on Linux to see open ports:
    sudo lsof -i -P -n | grep LISTEN
    sudo netstat -tulpn | grep LISTEN
    sudo ss -tulpn | grep LISTEN
    sudo lsof -i:22 ## see a specific port such as 22 ##
    sudo nmap -sTU -O IP-address-Here

No comments:

Post a Comment