Elastic-agent not connecting to fleet server

Hi, I am still new to this elastic-agent stuff. I am trying to connect my elastic agent that i want to install on my vm on GCP to connect to my fleet server on AWS EC2. I have already configured firewall rules to allow connection on port 8220 (default port using by elastic-agent) but i keep getting connection refused error. Can please help me on this? Below is the error mentioned

Error: fail to enroll: fail to execute request to fleet-server: dial tcp fleet-ip:8220: connect: connection refused

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.