Requested Address Cannot Bind

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

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.

1 Like

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

And this is happening in the Azure servers only.

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

I meant local network card not local port.

yeah gotchaa..thnxx

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