Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2817

why localhost is not working from WSL to Native Windows 11

$
0
0

Problem 1

I have installed Postgresql on WSL2 (Windows 11) & Datagrip(GUI) in windows. After connecting postgresql databases from WSL2 to Datagrip it works fine, but after a few seconds or minutes it says refure to connect:

enter image description here

Problem 2

After having this problem, I thought it's not about postgresql but somekind of connection problem. WSL2 unable to contact with Windows 11. So, I tried to install react on WSL2 and start the app. but as expected it fails on localhost:3000 (Win 11, Chrome browser) but works with On Your Network: http://192.168.54.171:3000

enter image description here

I think somehow the IP or something is blocking by WSL2 or maybewindows 11 has problem with wsl2 again

SYSTEM:

WSL     : 2Windows : 11Disto   : Ubuntu-22.04

plz help me someone 😭😢


Viewing all articles
Browse latest Browse all 2817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>