title: Http Connection Refused on Android Device
body: <p>I am having a problem to connect to the server via android application which is running on a device. I could manage to connect the server on a emulator, but on the device it gives http connection refused error.</p>
  
  <pre><code>07-08 09:53:27.125: W/System.err(8958): org.apache.http.conn.HttpHostConnectException: Connection to http://xx.xx.xx.xxx:8080 refused
  </code></pre>
  
  <p>I set up the server on a different laptop and the server is connected to university network wireless-ly and I am trying to connect to the server via the app on the device which is on the same network. </p>
  
  <p>What I don't understand is that there is no problem to connect the server on the emulator on a different computer, it gives connection failure when I test  it on the actual device.</p>
  
  <p>I have googled for the matter, but they were usually related to ip address issues, such as localhost, 127.0.0.1 or 10.0.0.2. To me, it doesn't seem to be the same problem. </p>
  
  <p>Please help me out! </p>
  
  <p>Thanks in advance</p>