$ ./webserver.py & sleep 5 && nmap localhost -p 8000 [1] 16517 Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2007-03-20 13:14 CET ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 56903) Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 521, in __init__ self.handle() File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/BaseHTTPServer.py", line 324, in handle self.handle_one_request() File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/BaseHTTPServer.py", line 307, in handle_one_request self.raw_requestline = self.rfile.readline() File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/socket.py", line 338, in readline data = self._sock.recv(self._rbufsize) error: (54, 'Connection reset by peer') ---------------------------------------- Interesting ports on localhost (127.0.0.1): PORT STATE SERVICE 8000/tcp open http-alt Nmap run completed -- 1 IP address (1 host up) scanned in 0.159 seconds