1

While attempting to start a Cherrypy Python webserver server after a reboot, I received the error:

error: No socket could be created -- (('0.0.0.0', 8000): [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions)

Changing the port to 8001 works, ruling out any issues regarding the server being blocked by my antivirus program. Also, prior to a reboot the server was functioning without any issues on port 8000.

Running netstat -a as well as Resource Monitor shows that there are no programs currently occupying port 8000.

What could be the issue that's preventing the Python server from binding port 8000?

1 Answer 1

0

Ports 8000 and 8080 often are used for Proxy server functionality. Maybe you have ICS (Internet connection sharing) or something similar enabled that is blocking this port.

You should also check if maybe falsely two instances of your server are running.

1
  • I don't have ICS or any other proxy server enabled on that computer, and python.exe is not running when I started the script. In any case, restarting the computer seemed to have fixed the issue. Very strange.
    – March Ho
    Commented May 7, 2017 at 1:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .