Torizon IDE: Connect to network device, Error: host ip is not set or empty

Hello,
I am a new Toradex user. I did a fresh install of the Torizon IDE.
The device is shown under “Network Devices”, but when I try to connect the IDE reports “Trying to connect to 192.168.178.20…ERROR :: Error trying to connect to verdin-am62-… : Host ip is not set or is empty”

A workmate tried the device on his setup and it works.

Any tips how to solve the problem? (I am not a network-expert).

Specs:
Verdin-AM62
Mallow Carrier Board

Host:
Windows 11
VS Code 1.95.1
Toradex IDE: 2.6.187
WSL: Torizon
Ethernet Adapter (Windows): 192.168.178.21/255.255.255.0
WSL vEthernet (Windows): 172.31.176.1/255.255.240.0

ifconfig on Torizon-Terminal:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.31.190.28 netmask 255.255.240.0 broadcast 172.31.191.255
inet6 fe80::215:5dff:fe9b:a7cd prefixlen 64 scopeid 0x20
ether 00:15:5d:9b:a7:cd txqueuelen 1000 (Ethernet)
RX packets 1993 bytes 1271501 (1.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2278 bytes 736254 (718.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To resolve the connection issue with the Torizon IDE, you should focus on the following steps based on the provided context:

  1. Subnet Configuration: The Torizon device (Verdin-AM62) is currently on a different subnet (172.31.190.28) compared to your host’s Ethernet adapter (192.168.178.21). This is likely causing the connection error. You need to configure the Torizon device to use an IP address within the same subnet as your host, such as 192.168.178.x.

  2. Update IDE Settings: Ensure that the Torizon IDE is configured to connect to the correct IP address of the device. The IDE is attempting to connect to 192.168.178.20, which is incorrect given the current device IP. Update the IDE settings to reflect the actual IP address of the device once it is on the correct subnet.

  3. Firewall Settings: Check your Windows firewall settings to ensure they are not blocking the connection to the Torizon device. You can temporarily disable the firewall to test the connection, and if successful, configure the firewall to allow traffic to the device.

  4. Compare with Working Setup: Since your workmate’s setup works, compare your network settings with theirs to identify any discrepancies. This might help you pinpoint any configuration differences that could be causing the issue.

By ensuring both the Torizon device and your Windows host are on the same subnet and updating the IDE settings accordingly, you should be able to resolve the connection error.

Please, also check if these links can help you solve your problem:

TI AM62 Computer on Module - Verdin AM62.

The network setup of my workmate is similar to mine (physical and virtual networks settings).
But when he fire up the IDE, in the output console shows more lines.

On my setup:

[11-06 06:59:02.601] Cloning project templates
[11-06 06:59:02.620] Project templates clone OK
[11-06 06:59:03.167] Project templates fetched OK
[11-06 06:59:03.246] Checkout templates repo to next OK
[11-06 06:59:03.636] Project templates pull ok
[11-06 06:59:03.638] Checking connected devices …
[11-06 06:59:03.639] Scanning Torizon devices …
[11-06 06:59:03.649] Debian bookworm packages list load OK
[11-06 06:59:03.652] Torizon IDE extension activated

On his setup:
[11-06 09:14:46.345] Cloning project templates
[11-06 09:14:46.355] Project templates clone OK
[11-06 09:14:46.855] Project templates fetched OK
[11-06 09:14:46.879] Checkout templates repo to next OK
[11-06 09:14:47.353] Project templates pull ok
[11-06 09:14:47.354] Checking connected devices …
[11-06 09:14:47.354] Scanning Torizon devices …
[11-06 09:14:47.361] Debian bookworm packages list load OK
[11-06 09:14:47.361] Configuring debug id_rsa …
[11-06 09:14:47.361] Debug id_rsa OK
[11-06 09:14:47.363] Torizon IDE extension activated
[11-06 09:14:47.537] Checking host ip sanity …
[11-06 09:14:48.386] Host ip is OK
[11-06 09:14:48.403] Device 192.168.178.59 set as Docker Host

I fixed the problem.

I edited the settings “VSCode → File → Preferences → Settings → User → Extensions → Torizon IDE Extension → torizon → Overwrite host Ip” with my windows network interface Ip.

Hi @Lars.ceta

Well, happy to know you solved your problem.

If you have more issues, feel free to reach back again.