Apple User Help

How to allow XAMPP apache through macOS firewall

I am running XAMPP 5.6.37 on Mojave 10.14.6. I am unable to connect to port 80 from another computer when the system firewall is on. It works fine when I turn firewall off in System Preferences. I have added an allow rule for httpd and I already tried removing and re-adding that rule.

I tried to check the log but it’s blank.

$ /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingopt detail
Setting detail log option 
$ /usr/libexec/ApplicationFirewall/socketfilterfw --getloggingopt
Log Option is detail
$ cat /var/log/appfirewall.log

I have tried searching through the output of log show but haven’t found anything relevant. I don’t know if there is a predicate filter that could be used here. So my question is two-fold: How to enable apache, and how to debug the system firewall in general?

enter image description here

Leave a Reply

Your email address will not be published. Required fields are marked *