Some issue with Windows® Defender Firewall of the development computer causes a communications failure with the target computer.
This failure occurs when the firewall settings in Windows Defender Security Center block communications with the target computer. The firewall configuration must not block the IP addresses that the development and target computers use to communicate.
Configure the firewall settings in Windows Defender Security Center to allow communications between the development and target computers.
Confirm that the firewall on the development computer is Windows Defender. In the Command Window type:
[~,antivirus]=system('WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List')
The antivirus software displays as
Windows Defender Firewall with Advanced Security with
Select Inbound Rules and New Rule.
For the Rule Type, select Custom and Next.
For the Program, select All programs and Next.
For the Protocol and Ports, select Any and Next.
For the Scope, add the IP address of the development computer in Which local IP addresses does this rule apply to? and add the target computer IP address in Which remote IP addresses does this rule apply to?.
For the Action, select Allow the connection and Next.
For the Profile, select the Domain, Private, and Public check boxes and Next.
For Name, provide a Name for this
inbound rule (for example,
Simulink Real-Time inbound) and
Select Outbound Rules and New Rule.
Repeat steps 4 through 10 for the custom outbound rule.