Reputation: 686
I want to run Elastic Search on an EC2 Instance, and access it globally. But upon changing its config to
cluster.name: elasticsearch
network.host: XX.XXX.XX.XX
(Associated Elastic IP)
It throws an error :
Caused by: java.net.BindException: Cannot assign requested address: bind
I suppose it was unable to bind to the public Ip Address
Then
I tried binding it to 0.0.0.0
as mentioned in Elasticsearch cannot start when bind to public ip address
(I had to add discovery.seed_hosts: []
since I am running a single instance).
It runs, but locally.
I cannot find any way to access it globally. Help!
Also I have added port 9200 in inbound rules or EC2
PS: Please mention any additional required information in the comments.
Upvotes: 0
Views: 684
Reputation: 686
I had to add an inbound rule in windows firewall for port range 9200-9300
Steps :
New Rule
9200-9300
Allow if secured
according to requirement).Hope this helps anyone facing the similar problem.
Upvotes: 0