title: Access server running locally from Appcelerator mobile app installed to android device
body: <p>I have a Spring Restful API Server running locally on my machine. </p>
  
  <p>I start/stop it as a Tomcat App server via Eclipse's Server's tab.</p>
  
  <p>I also have built an <strong><em>Appcelerator</em></strong> app that makes calls to this server.</p>
  
  <p>When I run my app via the <strong><em>Android Emulator</em></strong> option in <strong><em>Titatium Studio</em></strong> it connects and retreives data fine from my local server.
  The request is:</p>
  
  <pre><code>var TRANSACTIONS_URL = 'http://myipaddress:8080/PurchaseAPIServer/api/purchase';
  </code></pre>
  
  <p>I encounter a problem when I connect my android device to machine via a usb cable (in developer mode) and install/run the app on <strong><em>Android Device</em></strong> with <strong><em>Titanium Studio</em></strong>.</p>
  
  <p>My locally running server is never been hit. </p>
  
  <p>I have tried options mentioned in this article but had no luck:
  <a href="https://stackoverflow.com/questions/1621796/accessing-webserver-running-within-eclipse-from-outside-the-workstation/1630532#1630532">Accessing webserver running within Eclipse from outside the workstation</a></p>
  
  <p>Is there a way to get around this?</p>
  
  <p>Thanks</p>