# Can't run elasticsearch server

**URL:** <https://discuss.elastic.co/t/cant-run-elasticsearch-server/10131>\
**Category:** Elasticsearch\
**Created:** [December 20, 2012, 7:06am UTC](https://discuss.elastic.co/t/cant-run-elasticsearch-server/10131 "2012-12-20T07:06:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)\
**Post date:** [December 20, 2012, 7:06am UTC](https://discuss.elastic.co/t/cant-run-elasticsearch-server/10131/1 "2012-12-20T07:06:31Z")

</div>

Hi,  
I have just downloaded the elasticsearch and try to run it, but I am getting this annoying exception:  
"C:\java\jdk1.6.0\_31\bin\java" -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -X  
X:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryErr  
or -Delasticsearch -Des-foreground=yes -Des.path.home="C:\tools\elasticsearch-0.20.1" -cp ";C:\too  
ls\elasticsearch-0.20.1/lib/elasticsearch-0.20.1.jar;C:\tools\elasticsearch-0.20.1/lib/_;C:\tools\elasticsearch-0.20.1/lib/sigar/_" "org.elasticsearch.bootstrap.ElasticSearch"  
[2012-12-20 17:41:45,272][WARN][bootstrap] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line  
[2012-12-20 17:41:45,276][INFO][node] [Drumm, Jericho] {0.20.1}[6696]: initializing ...  
[2012-12-20 17:41:45,280][INFO][plugins] [Drumm, Jericho] loaded [], sites []  
[2012-12-20 17:41:52,475][INFO][node] [Drumm, Jericho] {0.20.1}[6696]: initialized  
[2012-12-20 17:41:52,475][INFO][node] [Drumm, Jericho] {0.20.1}[6696]: starting ...  
[2012-12-20 17:41:52,746][INFO][transport] [Drumm, Jericho] bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/2001:0:4137:9e76:2008:365c:3f57:fff9:9300]}  
[2012-12-20 17:41:56,015][INFO][cluster.service] [Drumm, Jericho] new\_master [Drumm, Jeri  
cho][AXaoCdyKSyS0\_IEvarudvw][inet[/2001:0:4137:9e76:2008:365c:3f57:fff9:9300]], reason: zen-disco-jo  
in (elected\_as\_master)  
[2012-12-20 17:41:56,038][WARN][transport.netty] [Drumm, Jericho] exception caught on transport layer [[id: 0x8e409dd8]], closing connection  
java.net.SocketException: Address family not supported by protocol family: connect  
at sun.nio.ch.Net.connect(Native Method)  
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:500)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(Nio  
ClientSocketPipelineSink.java:148)

Has anybody seen this problem? I found some the link [http://elasticsearch-users.115913.n3.nabble.com/Starting-ES-given-Exception-td4023806.html](http://elasticsearch-users.115913.n3.nabble.com/Starting-ES-given-Exception-td4023806.html), but they got side tracked and never explained what is the root of the problem. I think the problem is with “0.0.0.0:9300” address, but why elasticsearch is trying to use this one instead of my laptop address 192.168.0.6.  
Regrds,  
Janusz

---

<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, 2:59am UTC](https://discuss.elastic.co/t/cant-run-elasticsearch-server/10131/2 "2017-07-06T02:59:11Z")

</div>


