Skip to content

Conversation

@sh41
Copy link

@sh41 sh41 commented Oct 29, 2025

Summary

Builds on the work by @stickeegreg in #5912 and responds to the comment from @ChristopherHX to making the default network stack for the artifact and cache services tcp4 if running in WSL. Also added the option to configure via CLI flags.

Changes

Usage

# Use defaults (tcp4 on WSL2, tcp otherwise)
act

# On WSL2 override to use standard TCP
act --artifact-server-network tcp --cache-server-network tcp

# On non-WSL2 or if `WSL_DISTRO_NAME` isn't set for some reason: 
act --artifact-server-network tcp4 --cache-server-network tcp4

# Force IPv6 - I have no ability to test this as I don't have an ipv6 enabled machine to test on. 
act --artifact-server-network tcp6

Related Issues

Fixes #2636 - ECONNREFUSED to artifact service on WSL2
Fixes #1866 - Cache server EHOSTUNREACH on WSL2
Based on #5912 - Initial hardcoded fix

stickeegreg and others added 2 commits October 29, 2025 09:56
WSL2 requires IPv4-only (tcp4) for server connectivity due to networking limitations between Docker containers and WSL instances. Add CLI flags to configure network stack with auto-detection for the default based on WSL_DISTRO_NAME environment variable.

Fixes nektos#2636
Fixes nektos#1866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ECONNREFUSED to artifact service on WSL2 with mirrored networking Cache server EHOSTUNREACH

2 participants