title: Titanium access files via tether
body: <p>I have an app that needs to access a local WAMP server in order to be served by a PHP script, but only when the USB cable is plugged in. The app needs to operate completely offline. I have researched using USB tunneling and such but so far there is no clean and simple solution. Perhaps I am looking too far and wide for a solution?</p>
  
  <p>The end result for this project is that I need to copy a database from the WAMP server to the devices database. I plan on feeding it a JSON-parseable string via the PHP script.</p>
  
  <p>I am trying to achieve this with XHR:</p>
  
  <pre><code>var url = "http://10.0.2.2:8080/home/yey.php";
      var xhr = Ti.Network.createHTTPClient({
          onload: function(e){
              alert(this.responseText);
          },
          onerror: function(e){
              alert(e.error);
          },
          timeout: 5000
      });
  
  xhr.open("GET", url);
  xhr.send();
  </code></pre>
  
  <p>Other IP addresses I have tried are:</p>
  
  <pre><code>192.168.0.1
  127.0.0.1
  10.0.2.2
  // My PC's IP
  
  // and ports
  8888
  80
  8080
  </code></pre>
  
  <p>I am currently using easyPHP for development but the final product will run on a dedicated server box.</p>
  
  <p>Is there any other way for Titanium to access a php script hosted locally?</p>