UDP packets are not being forwarded from Windows Server to WSL2 running inside it

I am trying to create swarm from 2 window servers using built in WSL@ and one pure linux machine.

But I am seeing connection issues sending UDP packets from Linux to WSL@ through window server.

Tested scenarios:

  1. Send UDP packets from Linux to Window server => Works
  2. Send UDP packets from Window server to WSL2 => Works
  3. Send UDP packets from Linux to Window server to WSL2 => does not Works

3rd scenarios does not work so, Maria Db cluster does not work properly as it used UDP connections.

I tried to use use port forwarding and updated firewall rules already.

Any idea please ?

I fixed the typo in the title (“Winodw” vs “Windows”), but it looks like your problem is not with Docker, but with WSL and Windows so a Microsoft forum could be a better place to your question.

Docker inside the WSL2 distribution will not be able to control whether Windows Server forwards requests to the WSL distribution or not. As far as I know, you will have to create the forward rules if you want it to be available from another machine and you have to make sure the Windows firewall allows the request.

If you see that TCP works and only UDP is which doesn’t work, then I have no idea why it is happening, but again, Windows server users could probably tell you more about that too

1 Like