Connection issues are most likely caused by antivirus or firewall software blocking the connection between the development computer (host) and the Speedgoat target computer. Go through the following steps:
(1) Involve your IT Team
Some of the steps below may require (system) administrator permission, and will be easier to follow with the expertise of your IT helpdesk.
(2) Try to ping your Speedgoat target
Try to ping the target from the Windows Command Prompt. If the ping fails, double-check the IP, Gateway, and Port settings that you selected for the Speedgoat computer and development computer Ethernet interface. Also, connect a screen to your Speedgoat to verify whether it boots successfully.
(3) Get the full list of Antivirus & Firewall Software on your PC
Run the following command in MATLAB to get the list of all antivirus software present on your development computer:
[~,antivirus]=system('WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List')
For every software returned by the above command, it must be ensured that the firewall configuration does not intercept the host-target connection. With the help of your IT team, make sure that:
- The antivirus software allows the <matlabroot>\bin\matlab.exe process through the firewall. The antivirus software will likely have to be configured for every installed version of MATLAB that you intend to use with Speedgoat hardware.
- The antivirus software does not block the IP addresses, ports or protocols that the development and target computers use to communicate.
If Windows Defender Firewall or Symantec Endpoint Protection is enabled on your host computer, refer to the following MATLAB Answers post for a detailed description of steps to follow:
(4) Open Ports used by Simulink Real-Time
Make sure to allow the ports mentioned in the post below through your firewall, network, and VPN security configuration (in case you connect to your target remotely), as explained in the following MATLAB Answers Post:
(5) Try different hardware
Try using different hardware (cable, host PC, Ethernet interface on the host, USB-Ethernet dongle). USB-Ethernet dongles are particularly known to cause problems and it is always worth swapping your currently used adapter with another one.
(6) Try a point-to-point connection
If your Speedgoat machine is on your company network, try to directly connect it to your host computer instead. If the point-to-point connection works, make sure that the connection is not blocked by hubs/switches/routers on the network.
(7) Update the Ethernet driver on your PC
In some cases, updating the Ethernet card (NIC) driver resolves communication issues with the target computer.
(8) Temporarily disable the firewall and antivirus software
Temporarily disable all firewall and antivirus software. You can either do this manually or by booting your PC in "Windows Safe Mode with Networking", as explained in the link below:
Note that by disabling one firewall/antivirus software, another software (usually Windows Defender Firewall) may automatically be activated as a fallback.
If your IT does not allow this, try another host PC that is not connected to the company network and/or internet.
(9) Contact MathWorks Technical Support
If the above troubleshooting steps don't resolve the issue, contact MathWorks technical support with the following information:
- A detailed description of your network setup.
- The outcome after performing the troubleshooting steps above.