Skip to content

Access to windows host service from WSL2 #10440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
Ghostman863 opened this issue Sep 1, 2023 · 2 comments
Closed
1 of 2 tasks

Access to windows host service from WSL2 #10440

Ghostman863 opened this issue Sep 1, 2023 · 2 comments

Comments

@Ghostman863
Copy link

Windows Version

Version 10.0.23531.1001

WSL Version

1.3.15.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.4

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Ive got http service on windows host and iam not able to access to it from WSL2. From WSL2 iam not able to ping windows host ip, but all other ip address in network are accessable (computers, routers, NAS...). From windows host iam able to ping WSL2.
WSL ip is 172.23.248.53, windows 192.168.8... and windows WSL adapter is 172.24.240.1.

Expected Behavior

I just need to open service from windows host (0.0.0.0, 127.0.0.1 ....) in WSL.

Actual Behavior

wsl is not comunicating with windows host computer over ip.

Diagnostic Logs

No response

@ghost
Copy link

ghost commented Sep 5, 2023

Have you tried using the host address on that subnet you see on eth0? In your case 172.24.240.1

@ghost ghost added the needs-author-feedback label Sep 5, 2023
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

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

No branches or pull requests

1 participant