Hi Jamaluddin,
This issue is usually caused by software such as Windows Firewall or installed antivirus programs that are preventing MATLAB from communicating.
To fix this, make an exception for MATLAB in all these programs and grant it all permissions to communicate. Additionally, please check if you are using a VPN.
For more details, refer to the MATLAB Answer attached below:
Hope you find it useful.
