[WSL2] share localhost with Windows
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
-
Your Windows build number:
C:\Users\XXXX>ver
Microsoft Windows [版本 10.0.18922.1000] -
What you're doing and what's happening:
[XXX@XXX ~]$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:52742 localhost:x11 ESTABLISHED
tcp 0 0 localhost:52702 localhost:x11 ESTABLISHED
tcp 0 0 localhost:52784 localhost:x11 ESTABLISHED
tcp 0 0 localhost:52700 localhost:x11 ESTABLISHED
tcp 0 0 localhost:52780 localhost:x11 ESTABLISHED
[ed, KC... some snips]
- What's wrong / what should be happening instead:
Host don't share loopback with WSL guest (At least now). Reserve DNS takes host's ip as localhost may be confusing
172.17.58.195 is the ip address of the guest. 172.17.58.193 is the ip address of the host.
The problem occurs on every program using reserve dns.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The payload names no files, tests, or entry points. Start by reproducing the WSL2 networking behavior with netstat and comparing localhost resolution and loopback access between the Windows host and WSL guest. Done means the intended localhost sharing behavior is implemented and verified across programs using reserved DNS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100