Why do I get a Bind Error when using UDP with Simulink Real-Time?

7 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Mar 2025
Edited: MathWorks Support Team on 20 Mar 2025

MATLAB R2020b and later

A Bind Error may indicate that the Ethernet interfaces (ETH1, ETH2,...) on the Speedgoat target computer are not set up with the correct IP address.
To do so, run the speedgoat.configureEthernet utility which is part of Speedgoat I/O Blockset:
>> speedgoat.configureEthernet
The IP address of your Ethernet port should be on the same subnet as that of the external device you are trying to establish UDP communication with. However, it must also be on a different subnet than that of the other Ethernet ports on the target machine, including the Host Link port.
For any questions regarding "speedgoat.configureEthernet" or Speedgoat I/O Blockset, please reach out to Speedgoat support.
.

MATLAB R2020a and prior

In MATLAB R2020a and earlier, there are different Bind Failed Error causes, distinguished by their Error Codes:
  • Error 10013: This error can occur if the port is already in use. Try changing the port number to something else. The recommended range is [1024 65535] since ports below 1024 can be reserved.
  • Error 1 (204): See this MATLAB answer.
If you encounter a Bind Failed Error not listed here, please contact MathWorks Technical Support.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!