# Exception during establishing a SSL connection: HttpRequestOnTransportException\[This is not an HTTP port\]

**URL:** <https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536>\
**Category:** Elasticsearch\
**Created:** [March 8, 2021, 10:39am UTC](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536 "2021-03-08T10:39:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarthaksahu](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sarthaksahu](https://discuss.elastic.co/u/sarthaksahu)\
**Post date:** [March 8, 2021, 10:39am UTC](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536/1 "2021-03-08T10:39:13Z")

</div>

We are continuously getting below error. Please let me know the reason of this error, and what is the corrective action will help to get rid of this error.

```auto
Exception during establishing a SSL connection: HttpRequestOnTransportException[This is not an HTTP port]

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 8, 2021, 10:45am UTC](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536/2 "2021-03-08T10:45:42Z")

</div>

> [@sarthaksahu](#):
>
> `This is not an HTTP port`

You are trying to use HTTP to talk to the transport port. You can read [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/modules-network.html) for more details, and you can solve this by talking to the HTTP port instead. By default this is port 9200 not 9300.

---

<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 5, 2021, 10:45am UTC](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536/3 "2021-04-05T10:45:59Z")

</div>

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