Skip to content
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

Can not access Windows via localhost #236

Open
FlyinCow opened this issue Aug 12, 2021 · 3 comments
Open

Can not access Windows via localhost #236

FlyinCow opened this issue Aug 12, 2021 · 3 comments

Comments

@FlyinCow
Copy link

I'm using proxychains4 as my shell proxy, but I can not access 127.0.0.1:7890 where a proxy in Windows is running in WSL. Using LAN address of Windows works. The same thing happend when using dev server in node (vite), I started a dev server on localhost:3000 in WSL but I can not access it in Windows. I can access it in WSL though. There may be something wrong with vEthenet(WSL)

I'm using WSL2, Windows ver 10.0.19042.1165

@FlyinCow
Copy link
Author

In addition, after install ArchWSL, these issues come with my Ubuntu distro, too.

@FlyinCow
Copy link
Author

Ok things start getting wired now... I had my Arch distro backuped and recoveried, and now I can access it from windows with localhost... the different is that my subsystemd didn't work this time.

@PhyX-Meow
Copy link

PhyX-Meow commented Oct 5, 2021

You can't access Windows host by localhost in wsl2, I mean, you just can't.........
The reason you can access wsl host in Windows is Microsoft does some hack to it.

But still you can access Windows by a local adress, you can get it by running this in your wsl shell
cat /etc/resolv.conf | grep nameserver | awk '{print $2}'

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

3 participants