Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: test gatsby app on mobile 
Shell :: linux send syslog message to remote server 
Shell :: git fetch upstream from master 
Shell :: linux mint download 
Shell :: cat meaning linux 
Shell :: how to check process id in linux 
Shell :: display hidden files mac 
Shell :: remove pod and install again 
Shell :: gulp trust cert 
Shell :: fatal pathspec is in submodule 
Shell :: sudo apt update not working 
Shell :: terminal read json file 
Shell :: npm install bootstrap 3 angular 
Shell :: The CUDA compiler identification is unknown CMake Error at CMakeLists.txt:441 (enable_language): No CMAKE_CUDA_COMPILER could be found. 
Shell :: pdf-tools debian 
Shell :: vi search 
Shell :: how delete wireless connection raspberry pi terminal 
Shell :: your system lacks libtoolize 
Shell :: install git bash in ubuntu 
Shell :: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ 
Shell :: composer reinstall all packages 
Shell :: batch call another batch with parameters 
Shell :: push exsisting repo 
Shell :: file system ntfs not configured in kernel 
Shell :: preserve permissions tar 
Shell :: debian upgrade python 
Shell :: internet not working on centos 8 on linux 
Shell :: install apk adb 
Shell :: check size of folder linux 
Shell :: count all files csv file in a directory linux 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =