Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used netstat and I see some ports open that I want closed. How do I close them?

The computer is a Mac running OS X

share|improve this question

migrated from Jul 24 '10 at 7:46

This question came from our site for professional and enthusiast programmers.

you should ask this question in superuser – fardjad Jul 24 '10 at 6:29
netstat -lp will give you process/port – unknown Jul 24 '10 at 6:36
... did not work ... Mac OSX *** – Xofo Jul 24 '10 at 7:02

Try using

lsof | grep portnumber

to get the process that has it opened.

You could also use the -i option to let lsof do the filtering for a TCP port

lsof -i TCP:portnumber

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.