WSL2 Proxy Setting

Isshiki🐈
1 min readSep 7, 2020

--

On WSL1 it was like

But since WSL2 runs on a virtual machine kind of thing and doesn’t share the same localhost (127.0.0.1) with my PC, things are more complicated now

We use the first line to help us get the IP of the host machine (my PC in my case) on system startup (since people say the IP will vary every time), and the second will create an alias accordingly for you.

--

--