Skip to main content

WSL enable host mode networking

Windows WSL enables host mode networking in Windows WSL config

Config file location

Path to Configuration file

C:\Users\<user>\.wslconfig

Run in terminal

.wslconfig

Enable host mode networking

[wsl2]
networkingMode=mirrored