Skip to content

WSL networking configuration

WSL networking configuration involves the specific steps required to establish connectivity between the Windows host and the Linux subsystem, as well as accessing network resources.

Accessing Windows from Linux

To access network applications running on the Windows host from within the WSL environment, you must identify the host's IP address^[400-devops-02-os-and-linux-basics-windows-wsl.md]. This information is typically found by reading the contents of the system resolver configuration file^[400-devops-02-os-and-linux-basics-windows-wsl.md].

  • Command: cat /etc/resolv.conf

Accessing Linux from Windows

Accessing network applications hosted inside WSL from Windows is straightforward. Windows localhost is used to connect to the Linux subsystem's networking applications^[400-devops-02-os-and-linux-basics-windows-wsl.md].

Sources

^[400-devops-02-os-and-linux-basics-windows-wsl.md]