title: Genymotion unable to connect to server?
body: <p>I have an app that sends a http request to a server and receives a JSON for processing. I test it on both a physical device and Genymotion. </p>
  
  <p>The app runs fine on the physical device but on Genymotion throws <code>NetworkOnMainThreadException</code>.</p>
  
  <p>I tracked the exception and this is the part with the issue:</p>
  
  <pre><code>..
  DefaultHttpClient httpClient = new DefaultHttpClient();
  HttpPost httpPost = new HttpPost(url);
  httpPost.setEntity(new UrlEncodedFormEntity(params,"UTF-8"));
  
  // Exception on this line:
  HttpResponse httpResponse = httpClient.execute(httpPost);
  //
  HttpEntity httpEntity = httpResponse.getEntity();
  ...
  </code></pre>
  
  <p>It seems that the Genymotion can't connect to server to execute the request. But its browser loads the sites just fine. </p>
  
  <p>So, anyone knows what's going wrong here?</p>