Buy Me a Coffee
Illustration of network connectivity troubleshooting in WSL2

[WSL2] Fixing Lost Internet and LAN Connections in Windows Subsystem for Linux 2

If you’ve been using Windows Subsystem for Linux (WSL2) and suddenly find that your internet or LAN connections are lost, or you encounter git pull errors in Visual Studio Code, you’re not alone. Many users experience this issue where everything seems fine on the Windows side, yet WSL2 loses connectivity without warning. But don’t worry—there’s a straightforward fix that can get you back on track swiftly. Symptoms Before jumping into solutions, it’s essential to accurately pinpoint the symptoms. If you’re facing connectivity issues with WSL2, you might notice any of the following: ...

[WSL/Swarm] Fail to Join Docker Swarm as Worker

1. Problem I was trying to set up a Docker Swarm environment in my home network. My plan was to run the Docker Swarm manager node in a WSL2 Ubuntu distro on my Windows laptop, and run the Docker Swarm worker node on my MacMini. Both of them have Docker Desktop installed. When I tried to add a worker to the Swarm, I received the following error: Error response from daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 192.168.65.3:2377: connect: connection refused" My operation is as followed below ...

DigitalOcean Referral Badge
Sign up to get $200, 60-day account credit !