Skip to content

Commit e136091

Browse files
Update compare-versions.md
1 parent 08f97b8 commit e136091

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

WSL/compare-versions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ When using a WSL 1 distribution, if your computer was set up to be accessed by y
132132

133133
This isn't the default case in WSL 2. WSL 2 has a virtualized ethernet adapter with its own unique IP address. Currently, to enable this workflow you will need to go through the same steps as you would for a regular virtual machine. (We are looking into ways to improve this experience.)
134134

135+
Here's an example PowerShell command to add a port proxy that listens on port 4000 on the host and connects it to port 4000 to the WSL 2 VM with IP address 192.168.101.100.
136+
```powershell
137+
netsh interface portproxy add v4tov4 listenport=4000 listenaddress=0.0.0.0 connectport=4000 connectaddress=192.168.101.100
138+
```
139+
135140
#### IPv6 access
136141

137142
WSL 2 distributions currently cannot reach IPv6-only addresses. We are working on adding this feature.

0 commit comments

Comments
 (0)