Giving internet connection to the Verdin SoM through ICS under Windows 11

Using WSL2 on my Windows 10 machine, I’m able to enable ICS (Internet Connection Sharing) to give internet connection to a Versin SoM, as suggested by @henrique.tx during a call some months ago.

Now I have a Windows 11 PC, and I installed WSL2.
Enabling ICS seems not working as expected, and pinging the SoM from WSL2 doesn’t work.
Wireshark shows that no ping packet is sent out from the ethernet port to the SoM.

Is there any specific setting for Windows 11?
Does someone have positive experience with this setup?

Hello @vix
I don’t use Windows 11, but as a first step I would follow a tutorial like this one:
https://www.compsmag.com/blogs/how-to-enable-ics-in-windows-11/

and check afterwards if the SoM has internet access.

Best regards,
Josep

Hello @josep.tx
the steps are quite easy, and the SoM has internet connectivity (it can reach websites).
But internet connectivity is given by the physical machine (Windows 11).

The problem is that the SoM cannot be reached from WSL, and so ApolloX cannot work.
Pinging the SoM from Windows 11 works; pinging it from WSL never gives answer.

Hello @vix ,
Just to have the full picture, does the WSL have internet access? Can you ping any website?

Best regards,
Josep

Just to have the full picture, does the WSL have internet access? Can you ping any website?

Yes.
And WSL can ping a device through an ethernet interface configured with static IP.
But if the interface has an IP assigned by ICS, the device cannot be pinged anymore.

Any news on this topic?
It is very important for us since this problem blocks our development process.

Thanks!

Hi @vix ,

Given that this issue seems to be more related to WSL2/Windows 11 itself, we’re limited on how we can help in this case.

Doing a quick search we’ve found that ICS could be broken as of a recent Windows 10/11 update:

Hope this helps you.

Best regards,
Lucas Akira

My colleague opened this issue to WSL, but no answer yet.

I added some interesting info on WSL issue on github (but no answer yet from MS side):

  • applying security updates either KB5035845 or KB5041580 creates the same issue on my Windows 10 PC.

I had to uninstall manually the above security updates to bring back a working ICS on my Windows 10.
Has someone any idea on what could be the reason?

I go on with this topic (I know it’s old, but I has never been solved).

Quick summary:

  • using Windows PC, ICS is necessary to give internet connection to the SoMs (since they cannot be connected directly to the corporate LAN - they’re not authorized to go on the web)
  • given this behavior (or bug?), Toradex VS Code IDE Extension cannot be used with WSL2 on a Windows 11 PC. At least with the default networking mode (NAT)

The official page on Toradex website lists Windows 11 (via WSL2) as officially supported.

But, due to the above WLS2 bug, you cannot connect to the SoM (so, it works only partially).

Has someone be able to get this working?

Maybe with the new mirrored mode networking?

Hello Ernesto,

I would like to confirm the Extension supports Windows 11 using WSL2. It seems that the issue is related to your specific set up.
There are a few ways to work this around. One option could be setting up a restricted network for development, or alternately you can speak to your IT team, as this issue my be caused due to some restrictions on your company network.

hope this helps,

Maximiliano Zapata
Toradex

What do you mean with “my specific setup”?

Do you mean that your IT allows that you connect to your corporate LAN (where you have all your PCs, laptops, …) the SoMs and they can go to the web? I don’t think because in this case you can bring to the office whatever device you want and connect it to the web through this LAN (bad idea, IMHO).

Or do you have a separate LAN (with internet access) where you can connect the SoM?

As I wrote in my first post, I was not aware of ICS, it was a recommendation from @henrique.tx .

Can you explain which is “the setup” that allows the Extension working with Windows 11 and WSL2? Maybe I can ask my IT to evaluate this setup.

Thanks

Hello Ernesto,

To clarify this is the set up we recommend: Unboxing and Setup Cables - Dahlia | Toradex Developer Center
We ensure that this works.

What I meant with your specific set up, is that if this set up does not work for you it may be related to some local configuration on your company network, and that you may want to double check with your IT team if there is anything preventing/blocking the connection.

Best regards

Maximiliano Zapata
Toradex

I’ve just found that if ICS is used, the device can be reached from WSL if WSL network is congiured as Mirrored mode networking instead of the default NAT.