# Curl: (7) Failed to connect to localhost port 5601: Connection refused

**URL:** <https://discuss.elastic.co/t/curl-7-failed-to-connect-to-localhost-port-5601-connection-refused/223605>\
**Category:** Kibana\
**Created:** [March 14, 2020, 8:10am UTC](https://discuss.elastic.co/t/curl-7-failed-to-connect-to-localhost-port-5601-connection-refused/223605 "2020-03-14T08:10:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![merve](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@merve](https://discuss.elastic.co/u/merve)\
**Post date:** [March 14, 2020, 8:10am UTC](https://discuss.elastic.co/t/curl-7-failed-to-connect-to-localhost-port-5601-connection-refused/223605/1 "2020-03-14T08:10:11Z")

</div>

Hello everyone. I have a problem with kibana.  
curl localhost:5601 does not work i couldn't connect with browser.  
when i try this commands  
sudo -i service kibana start  
sudo -i service kibana stop  
sudo service kibana status  
i see that kibana Works.  
kibana.yml file contains...

# Kibana is served by a back end server. This setting specifies the port to use.

server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.

# The default is 'localhost', which usually means remote machines will not be able to connect.

# To allow connections from remote users, set this parameter to a non-loopback address.

server.host: "0.0.0.0"  
elasticsearch.url: "[http://localhost:9200/](http://localhost:9200/)"  
what is the problem?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 14, 2020, 3:07pm UTC](https://discuss.elastic.co/t/curl-7-failed-to-connect-to-localhost-port-5601-connection-refused/223605/2 "2020-03-14T15:07:38Z")

</div>

Can you check the logs? Maybe Kibana can’t start the web server for some reason.

---

<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:** [April 11, 2020, 3:14pm UTC](https://discuss.elastic.co/t/curl-7-failed-to-connect-to-localhost-port-5601-connection-refused/223605/3 "2020-04-11T15:14:01Z")

</div>

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