There is a problem with the firewall.
List of servers with which the agent communicates:
For TeamViewer to work properly, access to all TeamViewer servers must be possible. The easiest way to achieve this is to open port 5938 (TCP) for outgoing connections to any IP address. *.teamviewer.com can also be added to the whitelist.
If TeamViewer cannot connect via port 5938 (primary port), TeamViewer will try to connect via TCP port 443 or TCP port 80.
You may need to put the following servers on the Whitelist: chocolatey.org and packages.chocolatey.org.