As you have suggested it could be an issue with firewall.
Close MATLAB and add it to exceptions both in Windows and Anti-virus firewall.
Start MATLAB with Administrator permissions. This should fix the issue.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!