# Requested Address Cannot Bind

**URL:** <https://discuss.elastic.co/t/requested-address-cannot-bind/134067>\
**Category:** Elasticsearch\
**Created:** [May 31, 2018, 1:56pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067 "2018-05-31T13:56:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil\_sunny](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sunil\_sunny](https://discuss.elastic.co/u/sunil_sunny)\
**Post date:** [May 31, 2018, 1:56pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/1 "2018-05-31T13:56:03Z")

</div>

Hi team,

When I am configuring network.host property in the elasticsearch.yml ,my es is not starting and i am getting below exceptions

" Requested Address Cannot Bind."

When i am commenting that line it was working as expected, Here i need to connect it from remote access so i need to enable network.host. Can anyone help me whats going wrong here.

FYI, I am using Azure Environment. When i am giving internal IP instead of Public IP at the network.host property its working. But using that i cannot get remote access. So please help me to get remote access of ES from the azure server. ![load](https://us1.discourse-cdn.com/elastic/original/3X/6/6/663b73a553e08f18425f46d868ed4d60c08f7f6b.PNG)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 31, 2018, 2:15pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/2 "2018-05-31T14:15:24Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

You need to bind to the local port indeed.  
Then change Azure network settings to expose it.

Note that without xpack security that might be a bad idea to expose your cluster on internet.

---

<div class="post-metadata">

**Author:** ![sunil\_sunny](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sunil\_sunny](https://discuss.elastic.co/u/sunil_sunny)\
**Post date:** [May 31, 2018, 2:48pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/3 "2018-05-31T14:48:11Z")

</div>

Thanks for you Quick response David.

Sure I wont paste images.

Here for me the port is not the problem when i am giving my azure public IP at the network.host , the elasticsearch is not at all starting.

Here is my YAML Configuration file

> #cluster.name: my-application  
> cluster.name: load  
> script.inline: on  
> #path.repo: "E:/Performance/work/my\_backup"  
> thread\_pool.bulk.size: 4  
> thread\_pool.bulk.queue\_size: 300
> 
> # 
> 
> # ------------------------------------ Node ------------------------------------
> 
> # 
> 
> # Use a descriptive name for the node:
> 
> # 
> 
> #node.name: node-1
> 
> # 
> 
> # Add custom attributes to the node:
> 
> # 
> 
> #node.attr.rack: r1
> 
> # 
> 
> # ----------------------------------- Paths ------------------------------------
> 
> # 
> 
> # Path to directory where to store the data (separate multiple locations by comma):
> 
> # 
> 
> #path.data: /path/to/data
> 
> # 
> 
> # Path to log files:
> 
> # 
> 
> #path.logs: /path/to/logs
> 
> # 
> 
> # ----------------------------------- Memory -----------------------------------
> 
> # 
> 
> # Lock the memory on startup:
> 
> # 
> 
> #bootstrap.memory\_lock: true
> 
> # 
> 
> # Make sure that the heap size is set to about half the memory available
> 
> # on the system and that the owner of the process is allowed to use this
> 
> # limit.
> 
> # 
> 
> # Elasticsearch performs poorly when the system is swapping the memory.
> 
> # 
> 
> # ---------------------------------- Network -----------------------------------
> 
> # 
> 
> # Set the bind address to a specific IP (IPv4 or IPv6):
> 
> # 
> 
> network.host: 104.244.247.54
> 
> # 
> 
> # Set a custom port for HTTP:
> 
> # 
> 
> http.port: 9200

---

<div class="post-metadata">

**Author:** ![sunil\_sunny](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sunil\_sunny](https://discuss.elastic.co/u/sunil_sunny)\
**Post date:** [May 31, 2018, 2:50pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/4 "2018-05-31T14:50:29Z")

</div>

And this is happening in the Azure servers only.

As I am configuring it in my local Systems It was working as expected.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 31, 2018, 3:15pm UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/5 "2018-05-31T15:15:22Z")

</div>

I meant local network card not local port.

---

<div class="post-metadata">

**Author:** ![sunil\_sunny](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sunil\_sunny](https://discuss.elastic.co/u/sunil_sunny)\
**Post date:** [June 1, 2018, 11:34am UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/6 "2018-06-01T11:34:06Z")

</div>

yeah gotchaa..thnxx

---

<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:** [June 29, 2018, 11:34am UTC](https://discuss.elastic.co/t/requested-address-cannot-bind/134067/7 "2018-06-29T11:34:13Z")

</div>

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