Chrome remote debugging doesn't work with IP

前端 未结 7 925
长发绾君心
长发绾君心 2020-12-04 16:54

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

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

as describe

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 17:21

    You can create simple TCP proxy with netcat:

    EXTERNAL_PORT=1338
    CHROME_DEBUG_PORT=1337 # This is the port specified with --remote-debugging-port
    
    nc -l -p ${EXTERNAL_PORT} -c "nc 127.0.0.1 ${CHROME_DEBUG_PORT}"
    

提交回复
热议问题