title: OSError: [WinError 10013] - python
body: <p>I'm new in Python and i try to run my website and i get that error : <code>OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions</code></p>
  
  <p>So far i know, python runs on port 5000. When i change the port programmatic like that:</p>
  
  <pre><code> if __name__ == '__main__':
   if platform.system() == "Windows":
      app.run(host='127.0.0.1', port=5050, debug=True)
  </code></pre>
  
  <p>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?</p>
  
  <p><strong>Error log:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tkqMC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tkqMC.png" alt="enter image description here"></a></p>
  
  <p><strong>What should i do now?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/UQyxb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UQyxb.png" alt="enter image description here"></a></p>
  
  <p><strong>Edit - solution</strong></p>
  
  <p>I have followed this linked 
  <a href="https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows">How do I kill the process currently using a port on localhost in Windows?</a> , and after i killed the process that was listening to the port 5000, i was able to run the project.</p>