Remote Desktop Gateway Manager cannot connect to the server "{0}". Verify that the server is a Remote Desktop Gateway server, ...

Remote Desktop Gateway Manager cannot connect to the server "{0}". Verify that the server is a Remote Desktop Gateway server, and that File and Printer Sharing and Windows Management Instrumentation (WMI) are allowed to communicate through Windows Firewall, and then try again.