Skip to content
Advertisement

Tag: socketserver

Python SocketServer error upon connection

I am running a Python server using the socketserver module in Python 3.1. Every time I get a connection from the client (which succeeds client side), my server receives an error. Here is my code: And here is my error: The odd thing I noticed about the error is that the port it gives on the second line is different

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

I’m trying to create a custom TCP stack using Python 2.6.5 on Windows 7 to serve valid http page requests on port 80 locally. But, I’ve run into a snag with what seems like Windows 7 tightened up security. This code worked on Vista. Here’s my sample code: C:python>python TestServer.py Traceback (most recent call last): File “TestServer.py”, line 19, in

Advertisement