title: Does chrome debug tools "port forwarding" work on native apps as well as webview apps?
body: <p>I'm using <a href="https://developer.chrome.com/devtools/docs/remote-debugging#port-forwarding" rel="nofollow noreferrer">Chrome port forwarding</a> on my Cordova-based hybrid app, and it works fine for AJAX calls made from HTML/Javascript. As expected, AJAX calls to <a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a> forward to my desktop where my development server is running Apache on port 80. See image below. </p>
  
  <p>However, my app also makes an HTTP request in native code (I'm registering for GCM messages). As far as I can tell, the port forwarding does not work for that request. </p>
  
  <p>I'm using standard Java (no special HTTP client classes or anything):</p>
  
  <pre><code>URLConnection yc = registration_url.openConnection();
  BufferedReader in = new BufferedReader(new InputStreamReader(
                  yc.getInputStream()));
  String inputLine;
  etc.
  </code></pre>
  
  <p>Does anyone know how Chrome port forwarding works? Is it a proxy at the OS level of the device, or somehow built into WebView? Has anyone been able to get this to work with native code?</p>
  
  <p>FYI: I could convert my GCM registration to Javascript, but am hoping to avoid that work. </p>
  
  <p><img src="https://i.stack.imgur.com/8pFIo.png" alt="enter image description here"></p>