# Unable to connect to Elasticsearch at http://localhost:5601 - Windows 10

**URL:** <https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869>\
**Category:** Kibana\
**Created:** [October 17, 2018, 3:15pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869 "2018-10-17T15:15:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jugurtha](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jugurtha](https://discuss.elastic.co/u/jugurtha)\
**Post date:** [October 17, 2018, 3:15pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/1 "2018-10-17T15:15:57Z")

</div>

kibana doesn't work  
i installed kibana and elastic in the same server  
i have this error for kibana

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d2cb07b4cba2f78d11bb8ff8b2546e936804ef3e.png)

kibna.yml

# Kibana is served by a back end server. This controls which port to use.

server.port: 5601

# The host to bind the server to.

server.host: "0.0.0.0"

# If you are running kibana behind a proxy, and want to mount it at a path,

# specify that path here. The basePath can't end in a slash.

# server.basePath: ""

# The maximum payload size in bytes on incoming server requests.

# server.maxPayloadBytes: 1048576

# The Elasticsearch instance to use for all your queries.

elasticsearch.url: "[http://swbcfreei361:9200](http://swbcfreei361:9200)"

# preserve\_elasticsearch\_host true will send the hostname specified in `elasticsearch`. If you set it to false,

# then the host you use to connect to _this_ Kibana instance will be sent.

# elasticsearch.preserveHost: true

# Kibana uses an index in Elasticsearch to store saved searches, visualizations

# and dashboards. It will create a new index if it doesn't already exist.

kibana.index: kibana\_blackriver

log kibana

---

<div class="post-metadata">

**Author:** ![jugurtha](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jugurtha](https://discuss.elastic.co/u/jugurtha)\
**Post date:** [October 17, 2018, 3:16pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/2 "2018-10-17T15:16:14Z")

</div>

log kibana  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:kibana@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:elasticsearch@5.5.2","info"],"pid":6792,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:console@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:metrics@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:timelion@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:elasticsearch@5.5.2","error"],"pid":6792,"state":"red","message":"Status changed from yellow to red - Service Unavailable","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["listening","info"],"pid":6792,"message":"Server running at [http://0.0.0.0:5601](http://0.0.0.0:5601)"}  
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","ui settings","error"],"pid":6792,"state":"red","message":"Status changed from uninitialized to red - Elasticsearch plugin is red","prevState":"uninitialized","prevMsg":"uninitialized"}  
{"type":"response","@timestamp":"2018-10-17T15:09:36Z","tags":[],"pid":6792,"method":"get","statusCode":200,"req":{"url":"/","method":"get","headers":{"accept":"text/html, application/xhtml+xml, _/_","accept-language":"fr-FR","user-agent":"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko","accept-encoding":"gzip, deflate","host":"localhost:5601","dnt":"1","connection":"Keep-Alive"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":200,"responseTime":78,"contentLength":9},"message":"GET / 200 78ms - 9.0B"}  
{"type":"response","@timestamp":"2018-10-17T15:09:36Z","tags":[],"pid":6792,"method":"get","statusCode":503,"req":{"url":"/app/kibana","method":"get","headers":{"acc

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 18, 2018, 8:52pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/3 "2018-10-18T20:52:26Z")

</div>

If both Elasticsearch and Kibana are on the same server, you should not set anything for `elasticsearch.url` or use `localhost:9200`. The problem is it can't connect to `http://swbcfreei361:9200`

---

<div class="post-metadata">

**Author:** ![jugurtha](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jugurtha](https://discuss.elastic.co/u/jugurtha)\
**Post date:** [October 19, 2018, 8:06am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/4 "2018-10-19T08:06:54Z")

</div>

Hi thank you for your replay but elastic search it is working fine but the issue with kibana  
when i put `localhost:5601 i have the screenshot that i put in my message

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 19, 2018, 3:55pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/5 "2018-10-19T15:55:06Z")

</div>

I know, this is because Kibana can not connect to Elasticsearch. In your kibana.yml you provided you have `elasticsearch.url: http://swbcfreei361:9200`. If it's on the same machine, that value should be localhost:9200.

---

<div class="post-metadata">

**Author:** ![jugurtha](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jugurtha](https://discuss.elastic.co/u/jugurtha)\
**Post date:** [October 29, 2018, 10:58am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/6 "2018-10-29T10:58:32Z")

</div>

thank you for your answer it was an issue with network firewall it works for me now 🙂

---

<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:** [November 26, 2018, 10:58am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-localhost-5601-windows-10/152869/7 "2018-11-26T10:58:32Z")

</div>

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