Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome remote debugging doesn't work with IP

Tags:

I'm trying to remote debugg a chrome instance using the remote debug option in chrome:

chrome.exe --remote-debugging-port=1337 

as described on google page: http://code.google.com/chrome/devtools/docs/remote-debugging.html

the problem is when i try to access it using IP it doesn't work, while testing it with localhost:1337 does work.

any idea?

like image 389
Amir Avatar asked Jul 26 '11 08:07

Amir


People also ask

How do I debug Chrome address?

An inspector window should open, enabling you to remotely debug the Web Receiver app. The device IP address can be found by selecting the device in the Google Home app, going to settings, and looking under the Information section. Select the session you would like to debug by clicking its Remote Debugging link.

How do I remotely access a device in Chrome?

On your development machine, open Chrome. Go to chrome://inspect#devices . Make sure that the Discover USB devices checkbox is enabled. Connect your Android device directly to your development machine using a USB cable.

How do I inspect chromecast?

Go to the following URL in Chrome browser: chrome://inspect/#devices: You will see your Chromecast device and inspect action it below the URL. Click on inspect to debug your receiver application. A Chrome's browser window should open showing the Chromecast Receiver's application.


2 Answers

You can setup an SSH tunnel in order to debug remotely. On the source machine execute:

ssh -L 0.0.0.0:9223:localhost:9222 localhost -N  

Then on the other machine point Chrome browser to http://source-machine-ip:9223

like image 112
Adam V. Avatar answered Oct 06 '22 17:10

Adam V.


I don't think Chrome accepts connections from outside of localhost (for security reasons). I would suggest you have to build small proxy on the same host where Chrome is.

like image 36
beefeather Avatar answered Oct 06 '22 17:10

beefeather