title: Android app closes on database connection
body: <p>I want to develop a simple log in program in android.I have created the database in MsSql 2008 and created the program for id and password checking using ASP.Net and hosted it using IIS.I can connect to the database when I run my android program in the emulator.</p>
  
  <pre><code> HttpPost httppost=new HttpPost("http://10.0.2.2:35654/SMART/loginserver.aspx");
  </code></pre>
  
  <p>Using the above command I can successfully run the application in the emulator.loginserver.aspx is the .net page used for contacting the database.</p>
  
  <p>But when I try to launch the application from my phone (connected via USB) and try to log in using</p>
  
  <pre><code>HttpPost httppost=new HttpPost("http://192.168.43.1**:85/SMART/loginserver.aspx");
  </code></pre>
  
  <p>where 192.168.43.1** is my IP address and 85 is the port where i have hosted the website,the application stops and i get the following in logcat</p>
  
  <pre><code>01-19 18:48:29.405: W/System.err(19966): org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.43.1**:85 refused
  </code></pre>
  
  <p>Please help me to identify what i am doing wrong here.If I am not specific about something please tell me.I have enabled USB debugging and given permission for Internet in the androidmanifest.</p>
  
  <p>Thanks in advance.</p>