title: Python, socket.error: [Errno 10049]
body: <p>Working on a base for a simple chat client, and got the following error:
  <br><code>socket.error: [Errno 10049] The requested address is not valid in its context</code></p>
  
  <p>The code is:</p>
  
  <pre><code>from socket import *
  HOST = ''
  PORT = 8000
  s = socket(AF_INET, SOCK_STREAM)
  s.connect((HOST, PORT))
  i = True
  while i is True:
      msg = raw_input("Write A MSG: ")
      s.send(msg)
      print "Awaiting reply"
      reply = s.recv(1024)
      print "Recived: ", repr(reply)
  
  s.close()
  </code></pre>
  
  <p>Thanks for helping.</p>