Skip to content

WSL2 Networking issue when accessing nat/bridged localhost #12466

Closed
@mxschmitt

Description

@mxschmitt

Description

When using WSL2 on GitHub Actions in the Windows image its not possible to access the hosts's localhost network.

According to the documentation it should be possible. On my personal notebook / Windows DevBox this works as well. This makes it hard for us (Playwright) to test a feature which relies on WSL under the hood.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Image: windows-2025
Version: 20250617.1.0
Included Software: https://github.com/actions/runner-images/blob/win25/20250617.1/images/windows/Windows2025-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win25%2F20250617.1

Is it regression?

No

Expected behavior

It works.

Actual behavior

Timeout / WSL2 is not able to access the Windows host's networking.

Repro steps

Repro: https://github.com/mxschmitt/github-actions-windows-wsl-networking-localhost

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions