microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.23k stars 808 forks source link

Cannot access RabbitMQ server in host from WSL2 #8887

Open ThejaniYapa opened 1 year ago

ThejaniYapa commented 1 year ago

Version

Microsoft Windows [Version 10.0.22000.978]

WSL Version

Kernel Version

5.10.102.1

Distro Version

Ubuntu

Other Software

Docker Desktop 2.5.0.1 Ms Visual Studio Code 1.71.2 with Remote - WSL v0.66.3 Anaconda3 2020.02 (Python 3.7.6. 64-bit)

Repro Steps

Repro Steps Host IP found with cat /etc/resolv.conf : 172.21.112.1 ping "$(hostname).local" was unsuccessful, Allowed inbound from the WSL by with: New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow.

ping "$(hostname).local" is successful

Expected Behavior

Connection opens when: telnet 172.21.112.1 8888

Actual Behavior

telnet 172.21.112.1 8888 is unsuccessful with below response.

Trying 172.21.112.1... telnet: Unable to connect to remote host: Connection timed out

Diagnostic Logs

Output of networking.bat:

If you see 'ping: socket: Operation not permitted' errors, run this command as root.

--- 172.21.112.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3122ms rtt min/avg/max/mdev = 0.306/0.658/1.020/0.257 ms

--- 1.1.1.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3005ms rtt min/avg/max/mdev = 17.614/19.485/21.115/1.253 ms

FabriceReneCorail commented 9 months ago

Well it's look like this issue can be fixe an other version of the engine docker desktop. For me it's a pain cauz im developping on an old macbook and the 2.5.0.1 version is the only support by High Sierra and the engine version is 19... shit i need at least a 20.10 crap :s