GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OAuth callback server binds to IPv6, breaking WSL2 localhost forwarding · Issue #30013 · anomalyco/opencode

OAuth callback server binds to IPv6, breaking WSL2 localhost forwarding #30013

New issue
Copy link
New issue
Copy link
Closed
#30022
Closed
OAuth callback server binds to IPv6, breaking WSL2 localhost forwarding#30013
#30022
Copy link
Assignees
Hona

Description

@billovfo
billovfo
opened on May 30, 2026
Issue body actions

Description

The OAuth callback server in packages/opencode/src/mcp/oauth-callback.ts:164
calls server.listen(port) without a host, which binds to :: (IPv6) on Linux.
WSL2's localhost forwarding cannot route to IPv6 dual-stack sockets, so OAuth
callbacks from the Windows browser never reach OpenCode.

Plugins

No response

OpenCode version

Latest

Steps to reproduce

server!.listen(currentPort, '0.0.0.0', () => {

All OAuth-based remote MCP servers on WSL2 (Notion, etc.).

Screenshot and/or share link

No response

Operating System

Windows 11 pro (WSL 2, Ubuntu)

Terminal

WSL Ubuntu Tmus

Activity

  1. github-actions
    assigned
    Hona
    on May 30, 2026
  2. mertcanvural commented on May 31, 2026

    @mertcanvural
    mertcanvural
    on May 31, 2026
    More actions

    I hit a similar WSL2 loopback bug once. Since your repro already pins binding to , I'd compare three things first: a plain manual diff of the callback host the Windows browser actually reaches, authproxy.dev if you want to watch the handoff live, or OAuth Redirect Doctor if you want the callback host, loopback listener, and provider redirect lined up. tbh WSL2 usually falls over when the browser can hit localhost but the OAuth listener is only sitting on IPv6.

  3. billovfo commented on May 31, 2026

    @billovfo
    billovfo
    on May 31, 2026
    Author
    More actions

    Thank you guys

  4. rekram1-node
    closed this as completedin #30022on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Hona
    Hona

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.