Skip to content

Commit 5cda0fc

Browse files
Merge pull request #546 from jpopadak/patch-1
Moved instructions for WSL access in Windows
2 parents 3fbba9a + 72758c5 commit 5cda0fc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

WSL/wsl2-ux-changes.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ The picture below shows an example of this by connecting to a Node.js server run
3737

3838
![Accessing Linux network applications from Windows](media/wsl2-network-l2w.png)
3939

40-
### Accessing Linux applications from Windows (only in builds lower than 18945)
40+
### Accessing Linux applications from Windows
41+
42+
Depending on which version of Windows you're using, you might need to retrieve the IP address of the virtual machine. If your build is 18945 or higher, you can use `localhost` just like normal.
43+
44+
#### Accessing Linux on Builds lower than [18945](https://blogs.windows.com/windowsexperience/2019/07/26/announcing-windows-10-insider-preview-build-18945/)
45+
4146
If you have a server in a WSL distro, you'll need to find the IP address of the virtual machine powering your distro and connect to it with that IP address. You can do that by following these steps:
4247

4348
- Obtain the IP address of your distro by running the command `ip addr` inside of your WSL distro and finding it under the `inet` value of the `eth0` interface.
@@ -48,8 +53,6 @@ The picture below shows an example of this by connecting to a Node.js server usi
4853

4954
![Accessing Linux network applications from Windows](media/wsl2-network-w2l.jpg)
5055

51-
If your build is 18945 or higher, you can use localhost just like normal.
52-
5356
### Other networking considerations
5457

5558
#### Connecting via remote IP addresses

0 commit comments

Comments
 (0)