# How to bind IPv4 in fleet server

**URL:** <https://discuss.elastic.co/t/how-to-bind-ipv4-in-fleet-server/365289>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [August 21, 2024, 1:50pm UTC](https://discuss.elastic.co/t/how-to-bind-ipv4-in-fleet-server/365289 "2024-08-21T13:50:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachelyang](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@rachelyang](https://discuss.elastic.co/u/rachelyang)\
**Post date:** [August 21, 2024, 1:50pm UTC](https://discuss.elastic.co/t/how-to-bind-ipv4-in-fleet-server/365289/1 "2024-08-21T13:50:17Z")

</div>

Hello, I am trying to set up elastic agent with IPv4 bound. I set up like this:

```auto
sudo elastic-agent enroll \
  --fleet-server-es=https://10.0.0.1:9200 \
  --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3MjQyNDYyMTQ1OTY6MDJ0MTRXQWxRQU93aEVuQjlMTHo4Zw \
  --fleet-server-policy=fleet-server-policy \
  --fleet-server-es-ca-trusted-fingerprint=f5bed68b70e82d4df44168279aa67bcf127577a76e3e7b57f53855827e2d2964 \
  --fleet-server-port=8220
  --fleet-server-host=0.0.0.0

```

But it gave me an error:  
`--fleet-server-host=0.0.0.0: command not found`  
I am on ELK system version 8.15.0  
What command can I use to bind IPv4 now?  
Thanks

---

<div class="post-metadata">

**Author:** ![rachelyang](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@rachelyang](https://discuss.elastic.co/u/rachelyang)\
**Post date:** [August 21, 2024, 1:56pm UTC](https://discuss.elastic.co/t/how-to-bind-ipv4-in-fleet-server/365289/2 "2024-08-21T13:56:21Z")

</div>

```auto
tcp6 0 0 :::8220 :::* LISTEN 1527389/fleet-serve

```

This is netstat result. I want to listen on tcp instead of tcp6.

---

<div class="post-metadata">

**Author:** ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)\
**Post date:** [August 28, 2024, 11:02am UTC](https://discuss.elastic.co/t/how-to-bind-ipv4-in-fleet-server/365289/3 "2024-08-28T11:02:14Z")

</div>

Hi, you don't have to provide fleet-server-host, it will start fleet-server on your local machine.
