# Prod instance: Comms failing from remote and on-site- Error invoking remote method 'send-http-request': Error: connect ETIMEDOUT

**URL:** <https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239>\
**Category:** Elasticsearch\
**Created:** [July 18, 2025, 2:32am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239 "2025-07-18T02:32:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![harryDHL](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@harryDHL](https://discuss.elastic.co/u/harryDHL)\
**Post date:** [July 18, 2025, 2:32am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/1 "2025-07-18T02:32:11Z")

</div>

Hi all,

I wanted to reach out to see if anyone could help me with the following error I am getting while attempting to establish connection to Elastic PROD DB server.

Error invoking remote method 'send-http-request': Error: connect ETIMEDOUT

Comms failing from remote and on-site

---

<div class="post-metadata">

**Author:** ![gabriel.landau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel.landau/32/73401_2.png) [@gabriel.landau](https://discuss.elastic.co/u/gabriel.landau)\
**Post date:** [July 18, 2025, 3:37pm UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/2 "2025-07-18T15:37:48Z")

</div>

Hello @harryDHL

The `ETIMEDOUT` error means your connection request to the Elastic server is timing out. To diagnose this, let's try these two commands:

1. **Ping the server:** `ping <server_ip_or_hostname>`
2. **Check the database port (usually 9200):** `telnet <server_ip_or_hostname> 9200`

The results will tell us if the server is offline entirely or if just the database port is blocked.

Regards,  
Gabriel

---

<div class="post-metadata">

**Author:** ![harryDHL](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@harryDHL](https://discuss.elastic.co/u/harryDHL)\
**Post date:** [July 21, 2025, 1:55am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/3 "2025-07-21T01:55:10Z")

</div>

Hi Gabriel,

Thank you for your assistance.

1. Pinging server was **successful**
2. Checking DB Port was **unsuccessful**

**Checking DB Port Error**  
The underlying connection was closed: An unexpected error occurred on a send.

Harry,

---

<div class="post-metadata">

**Author:** ![gabriel.landau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel.landau/32/73401_2.png) [@gabriel.landau](https://discuss.elastic.co/u/gabriel.landau)\
**Post date:** [July 21, 2025, 2:20pm UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/4 "2025-07-21T14:20:18Z")

</div>

Hi Harry,

Thanks for running those tests. That's very helpful information!

Your results confirm that the server is online and your machine can reach it, but the connection to the Elasticsearch port (9200) is being blocked or refused. This tells us the problem is likely on the server itself, either with the Elasticsearch service or a firewall.

Let's check a few things directly on the server. You may need to ask your system administrator for help with these commands.

* * *

### 1. Is Elasticsearch Running?

First, let's verify that the Elasticsearch service is active.

On most modern Linux systems, you can use this command:

`sudo systemctl status elasticsearch`

Look for a line that says **`Active: active (running)`**.

* * *

### 2. Is It Listening on the Correct Port and IP?

If the service is running, let's see exactly what network address and port it's using. The service might be running but only listening for connections from `localhost` (the server itself).

Use this command to see what's listening on port 9200:

`sudo netstat -tulpn | grep 9200`

- **Good Output:** You want to see `0.0.0.0:9200` or `<server_ip>:9200`. This means it's listening on all network interfaces or the correct public one.
- **Problem Output:** If you see `127.0.0.1:9200` or `localhost:9200`, it means Elasticsearch is only accepting connections from the server itself. This is a common setting in the `elasticsearch.yml` configuration file (`network.host`).

* * *

### 3. Could a Firewall Be Blocking the Port?

If Elasticsearch is running and listening on the correct IP address, the final suspect is a firewall on the server. Here are commands to check the most common firewalls:

- **For firewalld (CentOS/RHEL)**:  
`sudo firewall-cmd --list-all`  
Check if port `9200/tcp` is listed under `ports`.
- **For UFW (Ubuntu/Debian)**:  
`sudo ufw status`  
Check the list of rules to see if port `9200` is allowed.

Based on the output of these checks, we should be able to pinpoint the exact cause. Let me know what you find.

Regards,

Gabriel

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [July 21, 2025, 2:49pm UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/5 "2025-07-21T14:49:52Z")

</div>

Welcome to the forum @harryDHL

In addition to Qsfrom @gabriel.landau , tell us please a little about the Elasticsearch server, what do you know about it? Did you or your team set it up? Are you responsible for it? Is it a cluster, or a single instance? Is it within your own "LAN", or a virtual equivalent, or "somewhere else"? Are you within some kind of corporate IT environment, the sort of place where network connectivity requires firewalls/access-lists/similar to be updated and managed by network/security/... teams? You mention 'PROD", is that to distinguish between that specific service and (eg) other TEST, DEV, Staging/Integration/ProProd/... services, and if so, does that connectivity work?

If you don't have _some_ sort of access (access meant in widest sense) it will be very difficult for us, not knowing your environment, to establish why you cannot connect.

---

<div class="post-metadata">

**Author:** ![harryDHL](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@harryDHL](https://discuss.elastic.co/u/harryDHL)\
**Post date:** [July 22, 2025, 1:28am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/6 "2025-07-22T01:28:41Z")

</div>

Hi @RainTown and @gabriel.landau ,

Thank you for your help and support. Please note, I have come to find out that the root cause of this connectivity issue is due to our corporate firewall settings. In order to access Elastic DB via the port, we will need to complete work with our network and security team.

Again, thank you for the helpful info provided. I will mark this one as resolved. Resolution being firewall settings need to be updated.

---

<div class="post-metadata">

**Author:** ![harryDHL](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@harryDHL](https://discuss.elastic.co/u/harryDHL)\
**Post date:** [July 23, 2025, 12:13am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/7 "2025-07-23T00:13:27Z")

</div>

Noting that both @gabriel.landau and @RainTown together were able to provide the solution.

---

<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:** [August 20, 2025, 12:13am UTC](https://discuss.elastic.co/t/prod-instance-comms-failing-from-remote-and-on-site-error-invoking-remote-method-send-http-request-error-connect-etimedout/380239/8 "2025-08-20T00:13:45Z")

</div>

Closed on August 20, 2025, 12:13am UTC

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