필터 지우기
필터 지우기

How can I establish communication with a Speedgoat target computer via an Ethernet interface configured as 'Public'?

조회 수: 128 (최근 30일)
I'm using Simulink Real-Time (SLRT) with a Speedgoat target computer and need to configure Windows Defender Firewall on my host PC for communication. I followed the steps from this link:
However, I found that my Ethernet interface is set to 'Public' in the Windows Network and Sharing Center, as shown in the screenshot below:
Due to my organization's IT policies, the 'Public' network options are grayed out, preventing me from allowing MATLAB through the firewall. As a result, while I can ping the Speedgoat and update the target software, I can't connect to the target using MATLAB R2020b or later, receiving errors like:
Cannot connect to target 'TargetPC1': Cannot connect to target.
Unable to connect to target computer 'TargetPC1': Unable to connect to target computer.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 7월 23일 0:00
편집: MathWorks Support Team 2024년 7월 23일 9:10
To ensure smooth host-target communication with Simulink Real-Time R2020b or later, the host PC Ethernet interface should be set to 'Private'. If set to 'Public', communication may be disrupted. Refer to our documentation for detailed instructions:
However, many organizations have strict IT policies that prevent users from changing the network type to 'Private'. In such cases, the configuration may revert back to 'Public' after a period of time or following a PC restart.
To address this challenge, we recommend creating a UDP-specific inbound rule in Windows Defender Firewall. Involve your IT helpdesk for assistance.

Option 1: Create Inbound Rule in PowerShell

You can use the following command in PowerShell, replacing <SpeedgoatIPaddress> with your Speedgoat IP address (e.g., 192.168.7.1):
New-NetFirewallRule -DisplayName "Speedgoat" -Direction Inbound -RemotePort 5505-5507,5510-5512,5515-5517 -Protocol UDP -Action Allow -Profile Any -RemoteAddress <SpeedgoatIPaddress>

Option 2: Create Inbound Rule in Windows Defender Firewall GUI

Alternatively, implement the rule in the Windows Defender Firewall GUI as shown below:
1. Find "Windows Defender Firewall with Advanced Security" by using the Windows search:
2. Create a new custom inbound rule:
3. Allow UDP connections from remote ports 5505-5507, 5510-5512, 5515-5517:
4. Optionally, for enhanced security and to restrict the rule's scope, consider adding the Speedgoat's remote IP address:
5. Ensure that the rule applies to all three network types (Domain, Private, and Public) as illustrated below:

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:

추가 답변 (1개)

Pablo Romero
Pablo Romero 2024년 1월 8일
편집: Pablo Romero 2024년 6월 28일 22:20
You can also use the following cmdlet in Powershell to configure the firewall accordingly in one single step. Please replace <SpeedgoatIPaddress> with your Speedgoat IP address, for example, 192.168.7.1 or remove that argument completely.
New-NetFirewallRule -DisplayName "Speedgoat" -Direction Inbound -RemotePort 5505-5507,5510-5512,5515-5517 -Protocol UDP -Action Allow -Profile Any -RemoteAddress <SpeedgoatIPaddress>

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by