title: android 4 emulator cannot connect with localhost
body: <p>I want to connect with my web API, its URL is <code>http://localhost:55154/</code>, with android emulator.</p>
  
  <pre><code>AsyncHttpClient client = new AsyncHttpClient();
  
  client.get("http://10.0.2.2:55154/api/values", new AsyncHttpResponseHandler() {    
      @Override
      public void onSuccess(String response) {
          System.out.println(response);
      }
  });
  </code></pre>
  
  <p>I'm getting no response, however, when I connect to <code>google.pl</code> I'm getting a proper response.<br />
  I have tried multiple variants with the localhost address, but none is working.</p>
  
  <p>Im using this liblary for my async connection:
  <a href="http://loopj.com/android-async-http/" rel="nofollow"><code>http://loopj.com/android-async-http/</code></a></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>When I'm running my program I'm getting the following error from the LogCat</p>
  
  <pre><code>07-17 08:58:26.495: E/Trace(879): error opening trace file: No such file or directory (2)
  </code></pre>
  
  <p>However I am able to conect with <code>http://localhost:55154/api/values</code> via my browser.</p>