# Http\_host only binds to 127.0.0.1

**URL:** https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835
**Category:** Logstash
**Created:** [June 21, 2018, 11:12am UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835 "2018-06-21T11:12:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![juanccert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanccert/32/32671_2.png) [@juanccert](https://discuss.elastic.co/u/juanccert)
#### Post date: [June 21, 2018, 11:12am UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/1 "2018-06-21T11:12:28Z")

</div>

I'm trying to communicate my _logstash_ instance with another host in a different LAN but I can't get my instance work in a different IP than the localhost: 127.0.0.1.

This is my config settings:

# 

http.host:"172.20.25.69"

# 

**# Bind port for the metrics REST endpoint, this option also accept a range**  
**#(9600-9700) and logstash will pick up the first available ports.**

# 

http.port: 9600-9700

# 

but when running logstash i can't communicate with no other host because I get logstash listening on  
0.0.0.0:5144 for incoming log traffic.

[INFO] 2018-06-21 11:09:13.535 [[main]\<udp] udp - UDP listener started {:address=\>"0.0.0.0:5144", :receive\_buffer\_bytes=\>"106496", :queue\_size=\>"2000"}

[INFO] 2018-06-21 11:09:13.555 [Ruby-0-Thread-1: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22] pipeline - Pipeline started succesfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x6b1ff06d@/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:246 run\>"}

[INFO] 2018-06-21 11:09:13.567 [Ruby-0-Thread-1: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22] agent - Pipelines running {:count=\>1, :pipelines=\>["main"]

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [June 21, 2018, 11:41am UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/2 "2018-06-21T11:41:54Z")

</div>

> but when running logstash i can't communicate with no other host because I get logstash listening on  
> 0.0.0.0:5144 for incoming log traffic.

But that's good. 0.0.0.0 means all network interfaces.

---

<div class="post-metadata">

### Author: ![juanccert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanccert/32/32671_2.png) [@juanccert](https://discuss.elastic.co/u/juanccert)
#### Post date: [June 21, 2018, 3:45pm UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/3 "2018-06-21T15:45:11Z")

</div>

Thanks! I thought that was wrong.  
The case is that I'm getting a connection refused while trying to sends logs to my logstash instance. The host where my instance is running responds with ICMP type=3 code= 10 meaning that the host is rejecting the incoming traffic.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [June 21, 2018, 6:08pm UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/4 "2018-06-21T18:08:01Z")

</div>

What are you using to send to Logstash? Have you verified with e.g. netstat that Logstash actually is listening on the port in question? Can you send data to that port from the same host? What's the firewall situation?

---

<div class="post-metadata">

### Author: ![juanccert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanccert/32/32671_2.png) [@juanccert](https://discuss.elastic.co/u/juanccert)
#### Post date: [June 22, 2018, 8:09am UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/5 "2018-06-22T08:09:18Z")

</div>

Thansk again.

It was I firewall isssue. The firewall daemon of the host was rejecting the the incoming packets on any unusual port.  
I'm using a firewall for sending los to logstash.  
netstat verified that the host was listening on that port.

I disabled the host firewall and it start receiving the logs

---

<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: [July 20, 2018, 8:09am UTC](https://discuss.elastic.co/t/http-host-only-binds-to-127-0-0-1/136835/6 "2018-07-20T08:09:18Z")

</div>

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