Please check what IP protocols are enabled in the communication profile for you server
If message is correct then the failure reason is protocol mismatch - for example communication profile is configured to use IPv6 only, but the agent in "Automation Folder" cannot use IPv6.
It is hard to tell without knowing details about your environment, if IP protocol settings are default in ITMS console and your environment is not IPv6 or IPv4 only then everything should work. If your environment is configured to use IPv4 only or IPv6 only or your server or client machines have IPv4 or IPv6 protocol disabled or removed, then that kind of message is supposed to tell you where the problem is.