title: cases for SocketTimeoutException in android
body: <p>I am trying to connect a url using HttpURLConnection when my url is not valid then i get this error of socket timeout.</p>
  
  <p>so there can be two cases</p>
  
  <p>1)Host is unreachable.
  2)Connection TimeOut</p>
  
  <p>So does it mean this error will occur when above 2 cases will occur or is there any condition for which this error can occur. </p>