In OSX server, the firewall is usually opened per Applicaation, not per port. However, I have a ton of self-compiled servers, and I find it more convenient to open their ports, rather than select their binaries from somewhere. (It's often cumbersome to spot the "binary" in a server, between millions of scripts and binaries.)
How do I open individual ports on the OSX Server Firewall?