Remote debugging - how to create a port proxy? Remote debugging - how to create a port proxy? google-chrome google-chrome

Remote debugging - how to create a port proxy?


I found my answer here. Everything comes down to this:

  • open Chrome in one console: google-chrome --remote-debugging-port=9222
  • and set up a proxy in another one: ssh -L 0.0.0.0:9223:localhost:9222 localhost -N
  • now you should be able to access remote debugging from another machine via http://192.168.1.123:9223/


The browser binds socket to localhost address. That is why you have the problem with accessing to the port.

You can solve the problem with help of ssh port forwarding feature.

ssh user@host-A.example.org -L 9111:127.0.0.1:9222

After running this command please open localhost:9111 on host B

ssh will forward the connection to host A and connect it to localhost:9222