Connect to Elasticsearch from a different machine
IMPORTANT: Making this application’s network ports public is a significant security risk. You are strongly advised to only allow access to those ports from trusted networks. If, for development purposes, you need to access from outside of a trusted network, please do not allow access to those ports via a public IP address. Instead, use a secure channel such as a VPN or an SSH tunnel. Follow these instructions to remotely connect safely and reliably.
To access the Elasticsearch server from another computer or application, make the following changes to the node’s /opt/bitnami/elasticsearch/config/elasticsearch.yml file:
network.host: Specify the hostname or IP address where the server will be accessible. Set it to 0.0.0.0 to listen on every interface.
network.publish_host: Specify the host name that the node publishes to other nodes for communication.
NOTE: Remember to configure the firewall on your server to allow traffic on the ports used by Elasticsearch. Refer to the FAQ for more information.