title: How resolve that python error WinError 10049] The requested address is not valid in its context
body: <p>I get an error at line listener.bind((&quot;192.168.10.5&quot;, 4444)):</p>
  <blockquote>
  <p>OSError: [WinError 10049] The requested address is not valid in its context</p>
  </blockquote>
  <p>Python code:</p>
  <pre><code>#!usr/bin/python
  import socket
  listener=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  listener.setsocket(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
  listener.bind((&quot;192.168.10.5&quot;, 4444))
  listener.listen(0)
  print(&quot;[+] waiting for incoming connections&quot;)
  listener.accept()
  print(&quot;[+] Got a connection&quot;)
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>listener.bind((&quot;192.168.10.5&quot;, 4444))
  OSError: [WinError 10049] The requested address is not valid in its context
  </code></pre>