netstat pid mac

having trouble identifying the pid using netstat on a mac?

Try this instead:

# sudo lsof -i -P

This will list all open files and the current socket they are using and the actual port (using an integer).

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>