Skip to content

docs(readme): add cross-machine CDP setup for WSL2 → Windows Chrome#198

Open
zzhan111 wants to merge 1 commit intoepiral:mainfrom
zzhan111:docs/wsl2-windows-chrome-cdp
Open

docs(readme): add cross-machine CDP setup for WSL2 → Windows Chrome#198
zzhan111 wants to merge 1 commit intoepiral:mainfrom
zzhan111:docs/wsl2-windows-chrome-cdp

Conversation

@zzhan111
Copy link
Copy Markdown

Summary

Adds a new "Cross-machine CDP (WSL2 ↔ Windows host)" section to the README, documenting how to point bb-browser at a Chrome running on a different machine than the daemon.

Motivation

Two situations where the default in-WSL2 chromium is not enough:

  • The target site refuses to load there (anti-bot, UA-based redirect loops)
  • The user already has a logged-in Chrome session on the Windows host and re-authenticating inside WSL2 is impractical

Both are solvable with existing flags (--cdp-host, --cdp-port, --port) plus BB_BROWSER_HOME for daemon isolation, but the Chrome 111+ behavior of silently ignoring --remote-debugging-address=0.0.0.0 makes the WSL2 case in particular non-obvious. This PR documents the working recipe.

What changed

  • README.md: 46 lines added, no deletions, no code changes.

Test plan

  • Recipe was followed end-to-end and confirmed to work with Chrome 147 on Windows 11 + WSL2 (Ubuntu), driving a real Chrome session from a bb-browser daemon running inside WSL2.

Open questions for maintainers

  • Is the security warning sufficient, or would you prefer it stronger?
  • Should this live under a new docs/ page rather than expanding README? Happy to move it.

🤖 Generated with Claude Code

Some sites won't load in a fresh chromium or require a logged-in
session that lives on a different machine. Document how to point
bb-browser at any reachable Chrome by combining --cdp-host /
--cdp-port with BB_BROWSER_HOME for daemon isolation, including
the WSL2 → Windows portproxy workaround for Chrome 111+ binding
CDP to 127.0.0.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant