title: Forcing HttpUrlConnection to ipv4 only
body: <p>I'm doing the typical HttpUrlConnection download to fetch data into my app, but I'm discovering problems on certain networks. </p>
  
  <p>These networks are assigning ipv6 addresses to the devices even though the networks don't work properly with ipv6. Of course, Android fails over from ipv6 to ipv4.</p>
  
  <p>In Jellybean (4.2.2) the failover takes close to a minute, which is way too long for a mobile app. We have do not have direct control of these networks. </p>
  
  <p>If I can force HttpUrlConnection to use only ipv4 everything will be fine, but I've found no way to do this. Has anyone else?</p>