# New User Problem -- empty reply from server (curl)

**URL:** https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033
**Category:** Elasticsearch
**Created:** [April 9, 2022, 3:47pm UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033 "2022-04-09T15:47:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![KatePearce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katepearce/32/104203_2.png) [@KatePearce](https://discuss.elastic.co/u/KatePearce)
#### Post date: [April 9, 2022, 3:47pm UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/1 "2022-04-09T15:47:09Z")

</div>

Today, I was trying to run Elasticsearch for the first time, but I've been running into some issues with the tutorial ([Getting started with the Elastic Stack | Getting Started [8.1] | Elastic](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-elastic-stack.html#get-started-elastic-stack)). When I check whether Elasticsearch is running using cURL, I keep getting an empty response from the server (curl: (52) Empty reply from server). Command looks like this:

```auto
curl --cacert $ES_PATH_CONF/certs/http_ca.crt -u elastic http://localhost:9300

```

I've been messing around with configurations and security settings in Elasticsearch.yaml, but nothing has really helped. I'm thinking it might be an issue with the $ES\_PATH\_CONF variable, but, to be honest, I'm not really sure what it needs to be changed to and need some help with this area as well as just getting a more intuitive understanding of how all of this works in general. Thank you!

---

<div class="post-metadata">

### Author: ![grfneto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grfneto/32/125776_2.png) [@grfneto](https://discuss.elastic.co/u/grfneto)
#### Post date: [April 9, 2022, 3:57pm UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/2 "2022-04-09T15:57:39Z")

</div>

KatePearce,

Can you access with browser the URL [http://localhost:9300](http://localhost:9300)? The default port is 9200 for Elasticsearch service. You checked if there are block with firewall?

---

<div class="post-metadata">

### Author: ![KatePearce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katepearce/32/104203_2.png) [@KatePearce](https://discuss.elastic.co/u/KatePearce)
#### Post date: [April 9, 2022, 4:04pm UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/3 "2022-04-09T16:04:16Z")

</div>

Hi Gerson,

Although I had some firewall issues earlier, when I'm running it, I simply get the message that localhost didn't send any data. To be honest, I don't really remember changing the port to 9300, although it shows that as the publishing address in the logs -- is there some process that automatically does this?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [April 9, 2022, 8:50pm UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/4 "2022-04-09T20:50:09Z")

</div>

Try on port 9200

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 12, 2022, 12:36am UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/5 "2022-04-12T00:36:52Z")

</div>

Welcome to our community! 😃

Elasticsearch listens to HTTP requests on port 9200, as Stephen mentions. Take a look at [What are ports 9200 and 9300 used for?](https://discuss.elastic.co/t/what-are-ports-9200-and-9300-used-for/238578/2)

---

<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: [May 10, 2022, 12:37am UTC](https://discuss.elastic.co/t/new-user-problem-empty-reply-from-server-curl/302033/6 "2022-05-10T00:37:08Z")

</div>

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