I have installed fleet server and now i want to install elastic agent but it showing me error like this

I have installed fleet server successfully. now i have other windows server and i have created policy for system, elastic endpoint. After downloading elastic agent, it showing me error like this and not able to connect with fleet server.

PS C:\Windows\system32\elastic-agent-8.3.2-windows-x86_64> .\elastic-agent.exe install --url=https://10.1.1.90:8220 --enrollment-token=Sm1meDhZRUJ5NU1pVk9NU3cyd0Y6Z09WTW54M3NTbWl6bUZsVURIVW5DQQ==
Elastic Agent will be installed at C:\Program Files\Elastic\Agent and will run as a service. Do you want to continue? [Y/n]:y
{"log.level":"info","@timestamp":"2022-07-12T16:37:55.973+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":471},"message":"Starting enrollment to URL: https://10.1.1.90:8220/","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: dial tcp 10.1.1.90:8220: connectex: No connection could be made because the target machine actively refused it.
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic
PS C:\Windows\system32\elastic-agent-8.3.2-windows-x86_64>'''

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