修改chrome target参数
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0 --remote-allow-origins=* --user-data-dir=D:\data\chrome
或者
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList "--remote-debugging-port=9222","--remote-debugging-address=0.0.0.0","--remote-allow-origins=*","--user-data-dir=D:\data\chrome","--no-first-run","--disable-sync"
这样只能
http://localhost:9222/json/version
访问
端口代理一下
netsh interface portproxy add v4tov4 listenport=9222 listenaddress=0.0.0.0 connectport=9222 connectaddress=127.0.0.1
下面ip就可以访问了
http://192.168.100.1:9222/json/version
就能让远程的ai来操控电脑了