Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Find Ports Used By Applications On Mac OS X (i.e. Netstat For Os X)

DZone's Guide to

Find Ports Used By Applications On Mac OS X (i.e. Netstat For Os X)

·
Free Resource
netstat on os x doesn't do what you hope it does - show port numbers for applications.

Here's a snippet for your .bash_profile:


# replacement netstat cmd to find ports used by apps on OS X
alias netstat_osx="sudo lsof -i -P"


(thx Lachie Cox)
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}