# Fleet sever is automatically connected

**URL:** <https://discuss.elastic.co/t/fleet-sever-is-automatically-connected/314741>\
**Category:** Kibana\
**Created:** [September 20, 2022, 6:31am UTC](https://discuss.elastic.co/t/fleet-sever-is-automatically-connected/314741 "2022-09-20T06:31:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas-mishra](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vikas-mishra](https://discuss.elastic.co/u/vikas-mishra)\
**Post date:** [September 20, 2022, 6:31am UTC](https://discuss.elastic.co/t/fleet-sever-is-automatically-connected/314741/1 "2022-09-20T06:31:56Z")

</div>

Hi there,

I am trying to set up my fleet server. On my kibana page it was showing fleet server is connected.  
Even though I' have changed the host is it still connecting to the old fleet server ?

Any how by ignoring it. I' have tried to install fleet on my desired server with the enrollment token got from the kibana. I am getting this error

Error: fail to enroll: fail to execute request to fleet-server: dial tcp XX.XX.XX.88:8220: connect: connection refused  
For help, please see our troubleshooting guide at [Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic](https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html)  
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](https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html)

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [September 20, 2022, 11:14pm UTC](https://discuss.elastic.co/t/fleet-sever-is-automatically-connected/314741/2 "2022-09-20T23:14:23Z")

</div>

check if the install link from Kibana is incorrect and you need to do HTTPS instead of HTTP. In kibana fleet settings you should set the fleetserver also to HTTPS. See if this resolves the issue.

Thanks  
Rashmi

---

<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:** [October 18, 2022, 11:15pm UTC](https://discuss.elastic.co/t/fleet-sever-is-automatically-connected/314741/3 "2022-10-18T23:15:24Z")

</div>

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