Chrome remote debugging doesn't work with IP

本文介绍了如何在Chrome的remote-debugging模式下,通过SSH隧道解决不能使用IP访问的问题。提到了Chrome可能出于安全原因只接受localhost连接,并提供了建立SSH隧道的解决方案,以及SSH命令的正向代理(-L)、反向代理(-R)和SOCKS5代理(-D)的用法和应用场景。
摘要由CSDN通过智能技术生成

如何配置远程访问--remote-debugging模式下的chrome?

 

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?

 

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值