0

I'm new in Python and i try to run my website and i get that error : OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

So far i know, python runs on port 5000. When i change the port programmatic like that:

 if __name__ == '__main__':
 if platform.system() == "Windows":
    app.run(host='127.0.0.1', port=5050, debug=True)

To 5050 or any port, it runs. But i want it to run on port 5000 as the defualt config. What should i do? how can i fix it? Is it problem with my laptop or with the program?

Error log:

enter image description here

What should i do now?

enter image description here

Edit - solution

I have followed this linked How do I kill the process currently using a port on localhost in Windows? , and after i killed the process that was listening to the port 5000, i was able to run the project.

E.Bolandian
  • 453
  • 5
  • 20

0 Answers0