liveBook · Manning

Network.port

As explained in Elasticsearch in Action, Second Edition

http.port is an Elasticsearch configuration property that specifies the port used for HTTP client communication.

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

How Elasticsearch in Action, Second Edition covers it

How deep it goes
Defines default and customized ports with a focused elasticsearch.yml example, but defers detailed property documentation.
Examples
Uses default port 9200 and changing http.port to 9900 as concrete configuration examples.
What you can do after
Operate/configure Elasticsearch HTTP access by changing http.port and directing clients to the selected port.
How it connects
Connects HTTP clients and RESTful endpoints with network.host, transport.port, node communication, and elasticsearch.yml.

This explainer was generated by Manning's knowledge graph from the text of Elasticsearch in Action, Second Edition. The section links point to the parts of the book it draws on.