I'm running django's simple HTTP server (using
python manage.py runserver). It's currently running on port 8000.
How can I open a port on my macbook and allow network traffic to visit my host on port 8000?
System Preferences > Security & Privacy > Firewall > Advanced.
Add a new entry with the
More info here: http://serverfault.com/a/105736/3914
The above command will permit access by localhost only. If you want to permit access by other network devices you must serve on
For those running from PyCharm, you set the Host field to
Once I did this, I got the OS X firewall popup asking: Do you want the application “Python.app” to accept incoming network connections.
Then you can access via
Incidentally, I'm running Python 3.4, built and installed by MacPorts on OS X El Capitan 10.11.2.