GeeCON Prague 2014*
The moose likes Mac OS and the fly likes See open ports in Mac? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "See open ports in Mac?" Watch "See open ports in Mac?" New topic
Author

See open ports in Mac?

Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 75
    
    1
There are a way to see at the prompt, open ports on mac, and block it, if possible ?

Thanks in advance !
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2853
    
  11

lsof | grep LISTEN

I just tried that though and it didn't seem to show me everything. As for blocking ports, that would be the job of firewall. I don't think that functionality is build into OSX, but I'm sure there are software firewalls available that you could install.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

You might want to look at Apple's OS X: About the application firewall page.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
GeeCON Prague 2014
 
subject: See open ports in Mac?