CzBiX / WSLHostPatcher

Dynamic patch WSL2 to listen port on any interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to put it in .profile?

cvladan opened this issue · comments

Hi, thanks for this tool!

I'm not exactly sure how to put it in .profile?
Is WSLHostPatcher.exe executed in Powershell/cmd aka "outside" of WSL2 or inside of WSL2?

commented

Put files in somewhere, such as C:\tools\.
then add this line into your ~/.profile in WSL2:
/mnt/c/tools/WSLHostPatcher.exe

Thanks!

In Windows terminal, if you do the above, the wsl terminal will simply terminate.

I added & at the end.

Put files in somewhere, such as C:\tools\. then add this line into your ~/.profile in WSL2: /mnt/c/tools/WSLHostPatcher.exe

image
我在wsl2里面的.profile 添加了/mnt/c/tools/WSLHostPatcher.exe 但是没有起到作用,但是在Windows中运行WSLHostPatcher.exe是有效的,我的Windows版本为21h2 wsl2为kali

Put files in somewhere, such as C:\tools\. then add this line into your ~/.profile in WSL2: /mnt/c/tools/WSLHostPatcher.exe

I was having difficulties running my expo react native project until I saw this, thanks!

Is it feasible to check if WSLHostPatcher.exe is running?
I've already added it to my WSL2 /.profile and I'm still getting the Expo Android App error: Network response timed out.