Skip to content

Feature request: Support connecting to Windows Chrome from WSL2 #205

Description

@whmyb6

Description

When running bb-browser daemon in WSL2 (Windows Subsystem for Linux), it would be great to connect to the Windows hosts Chrome instance directly, so that the users real browser login state (cookies, sessions) can be leveraged.

Current situation

  • Running chrome.exe --remote-debugging-port=19825 --headless from inside WSL starts Chrome on Windows side
  • WSL2 has network isolation - the CDP WebSocket port is not reachable from WSL via 127.0.0.1
  • Using Puppeteers bundled Chrome in WSL works but is headless-only, losing real browser login state

Suggested approach

Document how to set up Chrome on Windows with --remote-debugging-port and make it accessible from WSL2. Options:

  1. netsh interface portproxy to forward from WSLs virtual NIC
  2. Windows Firewall rule to allow WSL2 subnet access to CDP port
  3. Auto-detect WSL2 host IP in daemon

Environment

  • WSL2 + Ubuntu 22.04
  • Chrome at C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe
  • bb-browser v0.11.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions