I want a command-line tool to inspect sockets, like ss for Linux, but for Mac. Is there a port of that tool, or another tool I could use for Mac OS systems?

1 Answer 1


The equivalent of ss for Mac OSX is netstat, part of Network Utility. See https://support.apple.com/en-us/HT202790

  • 12
    From netstat man page: This program is obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route. Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr.
    – emx
    May 16, 2017 at 13:09
  • 2
    Your links busted.
    – slm
    Aug 8, 2018 at 17:40
  • 4
    the netstat man page on OS X is different :) and doesn't say obsolete. lsof may be another option: apple.stackexchange.com/questions/157893/…
    – rogerdpack
    Oct 11, 2018 at 20:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.