While I access the localhost servlet from android httpclient utils I am getting `connection refused` error. The servlet is running fine, but I am getting error.

This is the code:

```
String dmurl="http://127.0.0.1:9090/DataManagerProject/DMServlet";                                  
HttpClient httpClient = new DefaultHttpClient();
HttpGet hrtreq = new HttpGet(dmurl);
HttpResponse resp = httpClient.execute(hrtreq);
String output = EntityUtils.toString(resp.getEntity());

```

I am getting following error `org.apache.http.conn.httphostconnectexception connection to refused`