Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: remove 9229 from Chrome CDP port probing (Node.js debugger port, not Chrome)

ShawnPanab92c7486bfe6
diff --git a/browser_use/skill_cli/utils.py b/browser_use/skill_cli/utils.py
index 6bc8f77fa..077b7887a 100644
--- a/browser_use/skill_cli/utils.py
+++ b/browser_use/skill_cli/utils.py
@@ -178,7 +178,7 @@ def discover_chrome_cdp_url() -> str:
1. Read ``DevToolsActivePort`` from known Chrome data dirs.
2. Probe ``/json/version`` via HTTP to get ``webSocketDebuggerUrl``.
3. If HTTP fails, construct ``ws://`` URL directly from the port file.
- 4. Fallback: probe well-known ports 9222, 9229.
+ 4. Fallback: probe well-known port 9222.
Raises ``RuntimeError`` if no running Chrome with remote debugging is found.
"""
@@ -234,7 +234,7 @@ def discover_chrome_cdp_url() -> str:
return f'ws://127.0.0.1:{port}{ws_path}'
# --- Phase 2: well-known fallback ports ---
- for port in (9222, 9229):
+ for port in (9222,):
ws_url = _probe_http(port)
if ws_url:
return ws_url