title: Mingw+msys2 : Failed to connect to bitbucket.org : Network is unreachable
body: <p>I want to build ffmpeg under windows 8.1 by using <a href="https://github.com/jb-alvarado/media-autobuild_suite" rel="nofollow noreferrer">this script</a> and last version of Mingw+Msys2 , but it gets error for any hg clone from bitbucket.org , e.g:</p>
  
  <blockquote>
    <p>$ hg clone <a href="https://bitbucket.org/multicoreware/x265" rel="nofollow noreferrer">https://bitbucket.org/multicoreware/x265</a> </p>
    
    <p>abort: error:Network is unreachable</p>
  </blockquote>
  
  <p>After searching on the Internet I saw <a href="https://bitbucket.org/site/master/issues/12184/failed-to-connect-to-bitbucketorg-port-443" rel="nofollow noreferrer">this page</a> and realized it is because that bitbucket.org has IPv6 and I can not access to it .
  Please see results of the following commands: </p>
  
  <pre><code>$ ping -n 10 bitbucket.org
  
  Pinging bitbucket.org [104.192.143.2] with 32 bytes of data:
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  
  Ping statistics for 104.192.143.2:
      Packets: Sent = 10, Received = 0, Lost = 10 (100% loss),
  
  
  
  $ ping -n 10 -6 bitbucket.org
  Ping request could not find host bitbucket.org. Please check the name and try again
  
  
  $ tracert bitbucket.org
  
  Tracing route to bitbucket.org [104.192.143.1]
  over a maximum of 30 hops:
  
    1    &lt;1 ms    &lt;1 ms    &lt;1 ms  192.168.1.1
    2    30 ms    29 ms     9 ms  81.12.120.2
    3    20 ms    40 ms    12 ms  81.12.120.1
    4     6 ms     8 ms    10 ms  192.168.8.41
    5    21 ms    24 ms    19 ms  192.168.8.1
    6     *        *        *     Request timed out.
    7    52 ms    56 ms    54 ms  192.168.170.241
    8    35 ms    25 ms     *     10.10.53.61
    9    27 ms    32 ms    32 ms  10.201.47.142
   10    30 ms    44 ms    38 ms  10.201.42.117
   11    40 ms    33 ms    67 ms  10.201.147.242
   12    46 ms    38 ms    59 ms  85.132.90.201
   13     *        *        *     Request timed out.
   14     *        *        *     Request timed out.
   15     *        *        *     Request timed out.
   16     *        *        *     Request timed out.
    ...
  </code></pre>
  
  <p><strong>NOTE :</strong> Also, I've seen some posts on the stackoverflow.com like <a href="https://stackoverflow.com/questions/38606443/failed-to-connect-to-bitbucket-org-port-443-network-is-unreachable/38606704?noredirect=1#comment75955866_38606704">this</a>. But it seems works only for Linux, Because I added 104.192.143.2 bitbucket.org to my /etc/hosts but not worked.</p>
  
  <p>Please guide me.</p>