Elasticsearch uses the HTTP port for REST clients. It defaults to 9200, while node-to-node transport communication uses a separate port that defaults to 9300. section 14.2 section 14.7
Change the HTTP port
Set the property in elasticsearch.yml: http.port: 9900 After applying the configuration, HTTP clients should connect to port 9900 instead of the default 9200. Change transport.port separately when node-to-node communication needs a different port. section 14.5.1 section 14.2
Use the port setting alongside the surrounding network configuration:
- Combine network.port with network.host when Elasticsearch must bind to a specific network address rather than localhost. section 14.2
- Centralize configuration through ES_PATH_CONF or deployment automation when many nodes require consistent network settings. section 14.2
