Fail to connect the port 9200

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.12.0

Describe the issue: -bash-4.2# sudo systemctl status opensearch-2.12.0.service
● opensearch-2.12.0.service - OpenSearch 2.12.0
Loaded: loaded (/etc/systemd/system/opensearch-2.12.0.service; enabled; vendo r preset: disabled)
Active: active (running) since Wed 2024-04-17 14:08:28 UTC; 21min ago
Process: 28113 ExecStart=/opt/opensearch-2.12.0/bin/opensearch -d (code=exited , status=0/SUCCESS)
Main PID: 28324 (java)
CGroup: /system.slice/opensearch-2.12.0.service
└─28324 /opt/opensearch-2.12.0/jdk/bin/java -Xshare:auto -Dopensea…

Apr 17 14:08:26 ip-172-31-4-236.us-west-2.compute.internal systemd[1]: Starti…
Apr 17 14:08:28 ip-172-31-4-236.us-west-2.compute.internal systemd[1]: Starte…
Hint: Some lines were ellipsized, use -l to show in full.

-bash-4.2# curl https://172.31.4.236:9200 -u admin:admin -k
curl: (7) Failed to connect to 172.31.4.236 port 9200 after 0 ms: Couldn’t conne

Configuration:

Relevant Logs or Screenshots:

Hi @rathiga,

Could you confirm if port 9200 is opened?

you can use something like:

sudo netstat -tulpn | grep LISTEN

Best,
mj