# After changing IP elastic search throws error in AWS Ec2

**URL:** <https://discuss.elastic.co/t/after-changing-ip-elastic-search-throws-error-in-aws-ec2/21945>\
**Category:** Elasticsearch\
**Created:** [February 2, 2015, 7:35am UTC](https://discuss.elastic.co/t/after-changing-ip-elastic-search-throws-error-in-aws-ec2/21945 "2015-02-02T07:35:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arulmozhi\_Devi\_T](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@Arulmozhi\_Devi\_T](https://discuss.elastic.co/u/Arulmozhi_Devi_T)\
**Post date:** [February 2, 2015, 7:35am UTC](https://discuss.elastic.co/t/after-changing-ip-elastic-search-throws-error-in-aws-ec2/21945/1 "2015-02-02T07:35:03Z")

</div>

I have AWS EC2 instance to run elasticSearch. I launched it with one IP  
(54.xxx.xxx.109). Then I changed the IP of the instance to another IP. I  
have changed the ip in host files and elasticsearch.yml configs etc. But  
I'm getting this error. It shows the Old IP in the error. Can anybody guide  
me on this? I rebooted the system too.

log4j, [2015-01-30T09:46:00.265] WARN: org.elasticsearch.discovery.zen: [logstash-ec2-54-xxx-xxx-56.compute-1.amazonaws.com-3633-4038] failed to connect to master [[Steve Rogers][mRLFFqUTSuWmnoAbCDv1kA][[ec2-54-xxx-xxx-56.compute-1.amazonaws.com](http://ec2-54-xxx-xxx-56.compute-1.amazonaws.com)][inet[/54.xxx.xxx.109:9300]]], retrying...  
org.elasticsearch.transport.ConnectTransportException: [Steve Rogers][inet[/54.xxx.xxx.109:9300]] connect\_timeout[30s]  
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:718)  
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:647)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8d06b37c-6e16-48c1-9879-11e3f52b3277%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8d06b37c-6e16-48c1-9879-11e3f52b3277%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [February 2, 2015, 7:44am UTC](https://discuss.elastic.co/t/after-changing-ip-elastic-search-throws-error-in-aws-ec2/21945/2 "2015-02-02T07:44:15Z")

</div>

Which unicast settings did you set?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 2 févr. 2015 à 08:35, Arulmozhi Devi T [tdevs14@gmail.com](mailto:tdevs14@gmail.com) a écrit :
> 
> I have AWS EC2 instance to run elasticSearch. I launched it with one IP (54.xxx.xxx.109). Then I changed the IP of the instance to another IP. I have changed the ip in host files and elasticsearch.yml configs etc. But I'm getting this error. It shows the Old IP in the error. Can anybody guide me on this? I rebooted the system too.
> 
> ## log4j, [2015-01-30T09:46:00.265] WARN: org.elasticsearch.discovery.zen: [logstash-ec2-54-xxx-xxx-56.compute-1.amazonaws.com-3633-4038] failed to connect to master [[Steve Rogers][mRLFFqUTSuWmnoAbCDv1kA][[ec2-54-xxx-xxx-56.compute-1.amazonaws.com](http://ec2-54-xxx-xxx-56.compute-1.amazonaws.com)][inet[/54.xxx.xxx.109:9300]]], retrying... org.elasticsearch.transport.ConnectTransportException: [Steve Rogers][inet[/54.xxx.xxx.109:9300]] connect\_timeout[30s] at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:718) at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:647)
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8d06b37c-6e16-48c1-9879-11e3f52b3277%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8d06b37c-6e16-48c1-9879-11e3f52b3277%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1B1E01E9-B005-403F-BAEB-38177C9B639D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1B1E01E9-B005-403F-BAEB-38177C9B639D%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:35am UTC](https://discuss.elastic.co/t/after-changing-ip-elastic-search-throws-error-in-aws-ec2/21945/3 "2017-07-06T00:35:23Z")

</div>


