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


2 Answers 2


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. Commented Sep 4, 2014 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
    Commented Sep 4, 2014 at 18:11
  • I am using PyCharm Professional Edition Commented Sep 5, 2014 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .