Controllers connection time to Agent machine

Hi!
When I run a workflow, the Controller tries to connect to the Agent machine but disconnects. Please could you suggest how to handle this.

Please check firewall rule open or not on controller machine. If firewall rule not open on controller machine then first open firewall rule and try.