79399978

Date: 2025-01-30 13:02:00
Score: 0.5
Natty:
Report link

I will leave my solution for the issue with WSL port forwarding to windows, what happened to me. After WSL update I had problem with accessing anything what was hosted in WSL via localhost:PORT from my windows system. I checked the .wslconfig file and recognized that I had networkingMode set to mirrored. I changed it to NAT and restarted WSL VM and port forwarding started to work again.

Not sure if update changed this configuration or I made it myself in the past, but if you ever have problems with connecting to WSL districution, its good to check your wsl.conf or .wslconfig files.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Filip Baszak