Skip to content

[Windows] Hook times out after 29s — localhost resolves to ::1 (IPv6) first but worker only listens on 127.0.0.1 (IPv4) #2992

Description

@Ginple

Title: [Windows] Hook times out after 29s — localhost resolves to ::1
(IPv6) first but worker only listens on 127.0.0.1 (IPv4)

Environment: Windows 11, Node v24, Git Bash D:\Program Files\Git

Root cause confirmed:

  • Test-NetConnection 127.0.0.1:37777 → Success
  • Test-NetConnection ::1:37777 → Failed
  • hook_duration_ms = 29,947ms (TCP timeout)
  • [System.Net.Dns]::GetHostAddresses("localhost") returns IPv6 first

Fix: hook code should use "127.0.0.1" instead of "localhost"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions