# Fleet can't enroll

**URL:** <https://discuss.elastic.co/t/fleet-cant-enroll/310242>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [July 21, 2022, 7:17am UTC](https://discuss.elastic.co/t/fleet-cant-enroll/310242 "2022-07-21T07:17:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alipujaistopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alipujaistopo/32/50791_2.png) [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Post date:** [July 21, 2022, 7:17am UTC](https://discuss.elastic.co/t/fleet-cant-enroll/310242/1 "2022-07-21T07:17:12Z")

</div>

i tried to enroll elastic-agent but it has an error "remote server is not ready to accept connections" here's my config

`.\elastic-agent.exe install --url=https://urlelastic:8220 --enrollment-token=<token> --insecure`

when i nmap the url and port 8220 the service is unknown

how to fix this? help

fyi i stop my firewall

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [July 26, 2022, 2:52pm UTC](https://discuss.elastic.co/t/fleet-cant-enroll/310242/2 "2022-07-26T14:52:33Z")

</div>

We have a troubleshooting page for stuff like that. Have you tried [Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic](https://www.elastic.co/guide/en/fleet/current/fleet-troubleshooting.html#secondary-agent-not-connecting) for starters?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 23, 2022, 2:53pm UTC](https://discuss.elastic.co/t/fleet-cant-enroll/310242/3 "2022-08-23T14:53:15Z")

</div>

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