Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get remote IP of wsl ubuntu

# reference: https://stackoverflow.com/questions/56824788/how-to-connect-to-windows-postgres-database-from-wsl
grep nameserver /etc/resolv.conf | awk '{print $2}'

# from cmd
wsl hostname -I
 
PREVIOUS NEXT
Tagged: #remote #IP #wsl #ubuntu
ADD COMMENT
Topic
Name
4+2 =