title: android why sending information to server works with WIFI only?
body: <p>I am sending information to a server via WIFI and everything works great.Now i want to send information to a server with mobile data too, and i do not know why only works with WIFI, with mobile data trows an exception of failed to connect to server.</p>
  
  <p>this is the part that fail with mobile data; with WIFI works perfectly:</p>
  
  <pre><code>int length=values.length();
      HttpParams httpParams = new BasicHttpParams();
      HttpConnectionParams.setConnectionTimeout(httpParams,9000);
      HttpConnectionParams.setSoTimeout(httpParams, 9000);
  
      HttpClient client = new DefaultHttpClient(httpParams);
  
      String url = saveData+"?Length="+length+"&amp;Table="+temp;        
      HttpPost request = new HttpPost(url);
      request.setEntity(new ByteArrayEntity(values.toString().getBytes("UTF8")));        
      request.setHeader("json", values.toString());
      HttpResponse response = client.execute(request);
      HttpEntity entity = response.getEntity();
      // If the response does not enclose an entity, there is no need
      Log.d("test 7","test 7 last");
      if (entity != null) {
          InputStream instream = entity.getContent();
          String result =  RestClient.convertStreamToString(instream);
          Log.d("here",""+result);
          if(result.equals("success")&amp;&amp; ReadyOff==false){
              Ready=true;
          }else{
              Ready=false;
              ReadyOff=true;
          }
          Log.d("sent","valor de ready"+Ready);
      }
  </code></pre>
  
  <p>so i am doing something wrong?
  `</p>