title: Remote debugging - how to create a port proxy?
body: <p>I'm trying to access remote debugging port running on box A (Debian) from box B (Windows). On box A I'm running Chrome with <code>--remote-debugging-port=9222</code> flag and I can see that it works correctly (I can access <code>localhost:9222</code> from another browser on A). Also, I'm sure that boxes A and B are connected because I can access <code>:80</code> (apache) running on box A from box B just fine. Thing I need to do now is to allow box B access <code>:9222</code> on box A. I've done research on port forwarding and iptables rules but I failed to make it work.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Machine B is Windows so I'm not sure how to use ssh there, I found an <a href="http://www.quantumg.net/portforward.php" rel="noreferrer">app</a> for port-forwarding that seems to work fine. It gives me an error though: "received a connection but can't connect to host-B:9222". So it looks like 9222 is not open for outside connections. Output from netstat on A gives me:</p>
  
  <pre><code>root@template:/home/developer# netstat -nap | grep 9222
  tcp        0      0 127.0.0.1:9222      0.0.0.0:*    LISTEN      24300/user     
  </code></pre>