$> sudo lsof -i -P -n
$> sudo lsof -i -P -n | grep LISTEN
# Output Example
# --------------------------------------------------------------------------
# app process_id user _ ip_protocol _ _ protocol bind_addr:port
# --------------------------------------------------------------------------
# sshd 85379 root 3u IPv4 0xffff 0t0 TCP 10.86.128.138:22 (LISTEN)