Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

My system is a MacBook Air, so I cannot plug into the modem directly. And I do not want to turn my firewall off.

How can I specify to open a port, like port 56789 in Mac OS 10.6.8?

I know in the old Mac OS, there is an option for me to specify a custom port. But I cannot find it in OS X 10.6.8. In System Preferences / Security / Firewall, I only can allow an applicaiton to access a new port.

However, now I'm programming, using a new port. So, it does not seem suitable for me. Can I simply open a port instead of using an Application to open a port?

share|improve this question
What are you programming in? How would you open the port from there? – slhck Nov 26 '11 at 10:25
perl? Can I? I dont' know how to do. – Ian Nov 26 '11 at 13:10

When your application opens a socket to listen on a port, the OS will automatically ask whether you will allow this or not.

If you want more control, you can use tools like Waterroof, but this can be much more difficult to configure.

share|improve this answer
I know it will allow me to application. As you can see, I wanna manually handle the ports. Does Mac have any default system setting configure it? instead of using other tools? – Ian Nov 26 '11 at 8:13
I suppose there may be some command line tools, but the point of the firewall is simple security. It would be quite strange for OS X to have something like Windows Advanced Firewall. – Nov 26 '11 at 12:58
Yes, I saw it in windows before. So, I am finding sth like that. And even command line is fine. If there is no, I think I need sth third party. – Ian Nov 26 '11 at 13:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .