# How to get Elasticsearch to listen to site IP address?

**URL:** https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308
**Category:** Elasticsearch
**Created:** [February 8, 2017, 2:16am UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308 "2017-02-08T02:16:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![csobchuk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@csobchuk](https://discuss.elastic.co/u/csobchuk)
#### Post date: [February 8, 2017, 2:16am UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308/1 "2017-02-08T02:16:33Z")

</div>

I am trying to get Elasticsearch to listen to IP addresses other than 127.0.0.1. I have edited the /etc/elasticsearch.yml file as follows:  
#network.host: ["_local_", "_site_"] -- tried this one first but didn't work  
network.host: ["_local:ipv4_" , "_site:ipv4_"]  
http.port: 9200  
netstat shows that it seems to be listening on the port:  
$ sudo netstat -anp|grep 9200  
tcp6 0 0 192.168.0.39:9200 :::\* LISTEN 31495/java  
tcp6 0 0 127.0.0.1:9200 :::\* LISTEN 31495/java

curl [http://127.0.0.1:9200](http://127.0.0.1:9200) results are as expected:  
{  
"name" : "1\_im18G",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "bsw9TRs8SvakK5WDVeM5xQ",  
"version" : {  
"number" : "5.2.0",  
"build\_hash" : "24e05b9",  
"build\_date" : "2017-01-24T19:52:35.800Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.4.0"  
},  
"tagline" : "You Know, for Search"  
}  
and the change from netstat:  
sudo netstat -anp|grep 9200  
tcp 0 0 127.0.0.1:49663 127.0.0.1:9200 TIME\_WAIT -  
tcp6 0 0 192.168.0.39:9200 :::\* LISTEN 31495/java  
tcp6 0 0 127.0.0.1:9200 :::\* LISTEN 31495/java

response to curl [http://192.168.0.39:9200](http://192.168.0.39:9200) though results in:  
curl [http://192.168.0.39:9200](http://192.168.0.39:9200)

```
<HTML><HEAD>
<TITLE>Network Error - tcp_error</title>
SNIP
Network Error (tcp_error)</b> </font> </p>
SNIP
<p><font face="Arial, Helvetica, sans-serif" size="2"> A communication error occurred: "Operation timed out"
        </font> </p>
      <p><font face="Arial, Helvetica, sans-serif" size="2"> The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

```

and no change to netstat.  
tcp6 0 0 192.168.0.39:9200 :::\* LISTEN 31495/java  
tcp6 0 0 127.0.0.1:9200 :::\* LISTEN 31495/java

Am I missing something or is there maybe a server networking issue?  
Thanks.

---

<div class="post-metadata">

### Author: ![csobchuk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@csobchuk](https://discuss.elastic.co/u/csobchuk)
#### Post date: [February 8, 2017, 3:03pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308/2 "2017-02-08T15:03:53Z")

</div>

The issue was resolved with setting the no\_proxy on the local network devices to include the sever.

---

<div class="post-metadata">

### Author: ![harryhumphries](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harryhumphries/32/15813_2.png) [@harryhumphries](https://discuss.elastic.co/u/harryhumphries)
#### Post date: [February 23, 2017, 7:21pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308/3 "2017-02-23T19:21:27Z")

</div>

Is there any software which can protect the laptop from virus? I am fed up with the virus issue because it attacked my laptop for the third time and I lost my data twice, now I don’t want to lose it again. The person whom I contacted to get the [Help With Assignment](http://www.TopAssignmentHelp.co.uk/) told me to install an anti-virus, but it didn’t work. Can anyone here help me by telling me the name of a reliable anti-virus; I am willing to pay any amount to buy it.

---

<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: [March 23, 2017, 7:21pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-to-listen-to-site-ip-address/74308/4 "2017-03-23T19:21:27Z")

</div>

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