close

[Solved] socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions Error Occurs?

Today I get the following error socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions in python.

How To Solve socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions Error ?

  1. How To Solve socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions Error ?

    To Solve socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions Error It Seems the Port 80 is already in use. Try to Use some other Port which is not in use by any other application in your System.

  2. socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions

    To Solve socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions Error It Seems the Port 80 is already in use. Try to Use some other Port which is not in use by any other application in your System.

Solution 1

Your local port is using by another app. I faced the same problem! You can try the following step:

  1. Go to command line and run it as administrator!
  2. Type:netstat -ano | find ":5000" => TCP 0.0.0.0:5000 0.0.0.0:0 LISTENING 4032 TCP [::]:5000 [::]:0 LISTENING 4032
  3. Type:TASKKILL /F /PID 4032

=> SUCCESS: The process with PID 4032 has been terminated.

Solution 2

It Seems the Port 80 is already in use. Try to Use some other Port which is not in use by any other application in your System.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read