IMO the problem is the *firewall for dummies* configuration in the dialog for the OS X firewall (obviously since a few versions).
usually in a firewall you can select to allow:
- connections to certain applications
- connections from certain IPs
- connections to certain ports
- or any combination of the above three.
(the same for outgoing connections)
i'm sure you can still set all this using terminal, though i could not find any info about this on the net. possibly they have just done too much when fixing this issue http://support.apple.com/kb/HT6011
also apple explicitly mentions that blocking acces to a certain application can prevent regular access to another application http://support.apple.com/kb/PH14191
what a bummer ...
and remember: only a CRAY can run an endless loop in just three seconds.