Each time I run my Django development server, I get a dialog to allow incoming connections.

No matter what I do :

OS X still systematically ask me to allow incoming connection.

It's not just annoying, it's impossible to work with my IDE which restart the dev server after each code change.

enter image description here

I have to either turn off the firewall, or change my IDE configuration, both are bad solutions.

How can I permanently add the script in my firewall allowed apps?

I'm running Maverick 10.9.4

Signing the python application, using the instruction in the answer to this question, worked for me.

You can manually configure the firewall to unblock a port (i.e. 8080).

You'll need to open /etc/pf.conf in a text editor and add:

pass in proto tcp from any to any port 8080

to the end of the file (for port 8080, adjust to suit your needs).

Then restart your computer.

If that doesn't work run:

$ sudo pfctl -vnf /etc/pf.conf

to see if you get an error. If so fix.

Then restart again.

Should work.

  • 1
    I added pass in proto tcp from any to any port 8000 to /etc/pf.conf and restarted. Nothing changed. I don't see any error when using pfctl. – Benjamin Toueg Sep 4 '14 at 13:39
  • What IDE are you using? It seems from you original message that it is play an integral part of this equation. – sdmeyers Sep 4 '14 at 18:11
  • I am using PyCharm Professional Edition – Benjamin Toueg Sep 5 '14 at 9:23

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.