Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

netstat -b

Is anyone aware of a way of getting the equivalent of "netstat -b" (Windows XP Pro) which lists the binaries associated with their respective ports?
Sample result:
C:\>netstat -b
TCP wxp10168:2786 eg-www.apple.com:http ESTABLISHED 1688
[FIREFOX.EXE]
C:\>

Thanks,
-Jav

Macbook Pro 17, Mac OS X (10.4.7)

Posted on Sep 8, 2006 9:24 AM

Reply
Question marked as Best reply

Posted on Sep 8, 2006 9:25 AM

There may be other ways to do this, but I always use:

lsof -i

3 replies

Sep 8, 2006 10:56 AM in response to jsanchez157

Hi Jav,
There is a netstat command on OS X but it doesn't show the process monitoring the port. As Nathan says, lsof is the ticket. However, when invoked as a regular user, lsof only lists processes owned by that user. In order to check all ports, the command should be run as root via sudo.
--
Gary
~~~~
Shift to the left,
Shift to the right,
Mask in, mask out,
BYTE, BYTE, BYTE !!!

netstat -b

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.