How to run PyCharm using port 80

Viewed 8525

I can't run my PyCharm IDE using port 80. I need to use PayPal that requires me to use port 80. But using Mac OS X 10.8 I can't have it working because of permission issues. I've already tried running PyCharm with SUDO command.

Does anyone know how to run Pycharm using port 80, or any other solution?

Thanks.

4 Answers

You can achieve that by setting the Environment Variable inside PyCharm IDE. The Variable will be: FLASK_RUN_PORT=80 Steps to achieve that:

  1. RUN -> Edit Configurations
  2. Environment variables -> FLASK_RUN_PORT=80

Image: enter image description here

To change the port, add the following option in the Run/Debug Configurations :

enter image description here

I put 8000 value as 80 doesn't work dur to permissions.

Related