title: Xamarin Android: HttpRequestException: No route to host
body: <p>My application was previously running fine but from few days, without any change I am getting exception </p>
  
  <pre><code>System.Net.Http.HttpRequestException: No route to host
  </code></pre>
  
  <p>The complete exception is as follows.</p>
  
  <blockquote>
    <p>{System.Net.Http.HttpRequestException: No route to host ---> System.Net.Sockets.SocketException: No route to host
      at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00110] in &lt;99e6bf942304234315ba19eac23497e256>:0 
       --- End of inner exception stack trace ---
      at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in &lt;99e6bf9d99234215ba19eacc7497e256>:0 
      at System.Threading.Tasks.ValueTask<code>1[TResult].get_Result () [0x0001b] in &lt;6de489942345dbea42342d8c6&gt;:0 
      at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in &lt;99e6bf9d99304315ba19eacc7497e256&gt;:0 
      at System.Threading.Tasks.ValueTask</code>1[TResult].get_Result () [0x0001b] in &lt;6de48997d0c0445dbea8d4d83492d8c6>:0 
      at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask<code>1[TResult] creationTask) [0x000a2] in &lt;99e6bf9d9342043152342eacc7497e256&gt;:0 
      at System.Threading.Tasks.ValueTask</code>1[TResult].get_Result () [0x0001b] in &lt;6de48997d4234bea8d4d234d8c6>:0 
      at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in &lt;99e6bf9d993234a19eacc7497e256>:0 
      at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in &lt;99e6bf9d234304315ba19eac2345256>:0 
      at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task<code>1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in &lt;99e6bf9d99304315ba19eacc7497e256&gt;:0 
      at Refit.RequestBuilderImplementation+&lt;&gt;c__DisplayClass11_0</code>1[T].b__0 (System.Net.Http.HttpClient client, System.Threading.CancellationToken ct, System.Object[] paramList) [0x00115] in &lt;573dbb234a499ea234c22312349ab6>:0 
      at MyApp.Droid.Activities.ActivityLogin.GetToken () [0x000c2] in /ActivityLogin.cs:624 }</p>
  </blockquote>
  
  <p>My url is something like <a href="https://someservice.com:8080" rel="nofollow noreferrer">https://someservice.com:8080</a>
  I also have added android:usesCleartextTraffic="true" in android menifest file.
  Please guide me in this regard.</p>