Horje
access wiindows host from wsl2 Code Example
access wiindows host from wsl2
# You should run the following command in a powershell run as administrator:
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound  -InterfaceAlias "vEthernet (WSL)"  -Action Allow
# Then in WSL 2 add this line to your .profile
export hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }')
# Then use 'hostip:<your-desired-port>' to access any service runnin on your windows host from inside WSL 2




Shell

Related
install biocmanager in rstudio Code Example install biocmanager in rstudio Code Example
how to chop large sequences in linux Code Example how to chop large sequences in linux Code Example
jq get length of array Code Example jq get length of array Code Example
msiexec wait for completion powershell Code Example msiexec wait for completion powershell Code Example
npm i joi vs npm install joi Code Example npm i joi vs npm install joi Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10