What ports and protocols does a Speedgoat target use to communicate with the host PC in Simulink Real-Time?

What network ports does the Simulink Real-Time product require to maintain connectivity between the host PC and Speedgoat target?

 Accepted Answer

Simulink Real-Time (SLRT) requires multiple network ports and protocols to enable communication between the host PC and Speedgoat target via the "HostLink" interface.
To ensure full SLRT functionality, it is essential to allow all required ports and protocols through any firewalls between the host and the target, as listed below. Blocking or filtering any of them can result in limited functionality, so it's crucial to work with your IT or network security team to define the necessary firewall rules and unblock the affected ports.
For Windows host PCs, refer to the following MATLAB answer for step‑by‑step Windows Firewall configuration guidance: How do I configure Windows Defender Firewall for SLRT?
Disclaimer: The exact list of ports and protocols may vary depending on the contents and functionality implemented in the model, and may change from release to release.

For R2020b through R2025b:

In R2020b through R2025b, SLRT uses a 64-bit POSIX-compliant real-time operating system (RTOS) on the Speedgoat target with the following port and protocol requirements:
Protocol
Transport Protocol
Target PC (Remote Port)
Host PC (Local Port)
FTP
TCP
20-21
Ports assigned by host OS
SSH, SFTP*
TCP
22
Ports assigned by host OS
XCP
UDP
5555
Ports assigned by host OS
RTPS / FastDDS
UDP
5505-5507, 5510-5512, 5515-5517, 5520-5522
7400–7499
* By default, the host-target connection in MATLAB uses FTP. To enable SFTP, sethis MATLAB answer.

For R2026a and later:

Since R2026a, SLRT uses a 64-bit Linux-based RTOS on the Speedgoat target with updated port and protocol requirements:
Protocol
Transport Protocol
Target PC (Remote Port)
Host PC (Local Port)
FTP
TCP
20-21
Ports assigned by host OS
SSH, SFTP*
TCP
22
Ports assigned by host OS
XCP**
UDP
5555
Ports assigned by host OS
MQTT
TCP
1883
Ports assigned by host OS
MQTT over TLS (Secure MQTT)***
TCP
8883
Ports assigned by host OS
HTTP / HTTPS***
TCP
8080
Ports assigned by host OS
* By default, the host-target connection in MATLAB uses FTP. To enable SFTP, see this MATLAB answer.
** Since R2026a, XCP is no longer used by the host-target connection in MATLAB. It is required only when connecting Third-Party Calibration Tools such as Vector CANape® or ETAS® Inca to the target.
*** Use setupTLSCertificate(tg) to set up a TLS certificate for MQTT and HTTP.

Additional Notes:

1) Remote access: If you intend to access a Simulink Real-Time target remotely, the ports mentioned above must be allowed through your VPN security configuration. See the following answer for more information regarding remote access to Speedgoat:
2) Changing the gateway of the Speedgoat target: To ensure proper network configuration, you may need to change the gateway of the Speedgoat real-time target machine. Here are the steps to do so:
3) Further troubleshooting: If the above instructions don't help resolve the communication issues with your Speedgoat hardware, refer to this MATLAB Answer for additional troubleshooting steps:

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!