title: How to use python3 to connect to a ipv6 host using socket library
body: <p>The following is my code in an attempt to connect to an IPv6 address host using sockets in python. However, all my attempts have resulted in the output "Network is unreachable". Could you point out what I am doing wrong and how it could be corrected?</p>
  
  <pre><code>import socket
  sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
  sock.connect(('2001:240:2408:8897:b4ac:9e51:ecc9:a388',8333,0,0))
  </code></pre>
  
  <p><strong>OSError: [WinError 10051] A socket operation was attempted to an unreachable net
  work</strong></p>