title: Retrofit not working on specific versions of android
body: <p>I have a problem with Retrofit on my emulator running Android 4.3 and my device is on Android 4.4.2 while the same code runs normally on another emulator with Android 7.1.1<br></p>
  
  <p>Each time I try to execute the <code>get</code> request I get a timeout exception. </p>
  
  <pre><code>java.net.SocketTimeoutException: failed to connect to jsonplaceholder.typicode.com/2606:4700:30::681c:3f5 (port 443) after 10000ms
          at libcore.io.IoBridge.connectErrno(IoBridge.java:159)
          at libcore.io.IoBridge.connect(IoBridge.java:112)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
          at java.net.Socket.connect(Socket.java:842)
          at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:73)
          at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:246)
          at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:166)
          at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
          at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
          at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
          at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
          at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
          at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
          at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
          at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:200)
          at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
          at java.lang.Thread.run(Thread.java:841)
  </code></pre>
  
  <p>The code is below</p>
  
  <pre><code>public interface Api {
      String BASE_URL = "https://jsonplaceholder.typicode.com/";
  
      @GET("posts")
      Call&lt;ArrayList&lt;Post&gt;&gt; getPosts();
  }
  </code></pre>
  
  <p>and the call to the api</p>
  
  <pre><code>Retrofit retrofit = new Retrofit.Builder()
          .baseUrl(Api.BASE_URL)
          .addConverterFactory(GsonConverterFactory.create())
          .build();
  
  Api api = retrofit.create(Api.class);
  Call&lt;ArrayList&lt;Post&gt;&gt; call = api.getPostes();
  Log.i("RequestUrl", call.request().url().toString());
  call.enqueue(new Callback&lt;ArrayList&lt;Post&gt;&gt;() {
      @Override
      public void onResponse(Call&lt;ArrayList&lt;Post&gt;&gt; call, Response&lt;ArrayList&lt;Post&gt;&gt; response) {
          mPostsList.setValue(response.body());
      }
  
      @Override
      public void onFailure(Call&lt;ArrayList&lt;Post&gt;&gt; call, Throwable t) {
          Log.e("Posts", "Error occurred", t);
      }
  });
  </code></pre>