# Configure logstast to bind to an IP

**URL:** https://discuss.elastic.co/t/configure-logstast-to-bind-to-an-ip/210627
**Category:** Logstash
**Created:** [December 5, 2019, 6:12am UTC](https://discuss.elastic.co/t/configure-logstast-to-bind-to-an-ip/210627 "2019-12-05T06:12:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ShiviKaya](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@ShiviKaya](https://discuss.elastic.co/u/ShiviKaya)
#### Post date: [December 5, 2019, 6:12am UTC](https://discuss.elastic.co/t/configure-logstast-to-bind-to-an-ip/210627/1 "2019-12-05T06:12:47Z")

</div>

My server has two interfaces, public and private. I need to send logs to a kafka server which is not reachable from the private interface. Is there a way to configure logstash to use the public interface because it uses the private interface by default.

---

<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: [January 2, 2020, 6:12am UTC](https://discuss.elastic.co/t/configure-logstast-to-bind-to-an-ip/210627/2 "2020-01-02T06:12:49Z")

</div>

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