(imported comment written by Lee Wei)
I would first try to connect to the web sites from the TEM Server computer using a web browser.
If this works from a web browser, do you have a proxy that requires configuration and authentication to connect to the Internet?
The TEM Server is trying with a different user credential.
Also make sure to verify if there is a web content filtering appliance that might be block he TEM Server from accessing the Internet.
It is possible that only certain “User-Agents” are allowed to access the Internet. Please see this knowledge base article and search for User-Agent.