MATLAB: Troubleshoot connection issues with Speedgoat target machine for R2020b onwards

connectionfirewallslrtspeedgoat

I have upgraded my Speedgoat Simulink Real-Time target to the new QNX RTOS, and I can see that the machine boots correctly.
However, when I try to connect with my Speedgoat target using the button in Simulink Real-Time Explorer, or by executing tg.connect, I always get the following timeout error:
Cannot connect to target 'MyTarget': Timed-out waiting for target connection.

Best Answer

It must be ensured that the firewall configuration does not block the IP addresses that the development and target computers use to communicate. Please follow the steps provided in the "Troubleshoot Communication Failure Through Firewall" documentation page below:
If the documentation link does not help, consult your local IT team to:
1. Temporarily disable the Windows Defender Firewall to see if this resolves the issue.
2. Identify other antivirus or firewall software that might intercept the host-target connection.
3. Double-check the IP, Gateway and Port settings that you selected for the Speedgoat machine.
4. If your Speedgoat machine is connected to a network, verify that the connection is not blocked by routers/switches.
5. Allow these ports through your firewall or VPN security configuration if you intend to access a Simulink Real-Time target remotely, as explained in the following MATLAB Answers Post: