Open a port in OSX


This is probably really simple, but how do I open a port in MacOS X? I'm setting up a mySQL server, which runs on port 3306, but for security reasons, practically all the ports have been closed on the workstation I am using.

In there you would go to the file /etc/services and look in there.

Don't have time now, keep here for a posting of a webpage related to this forum.
is in the range available to everyone (it is above 1024). So, any user should be able to bind() his socket() to that port, as long as it is not already in use.

However, the firewall is still capable of dropping all packets going to/from that port; if this is the case, you have to modify the firewall rules.