I believe this can be done by setting the "host" and "hostPort" elements in solr.xml. In the default solr.xml they are configured in a way to support also setting them via System properties:
<str name="host">${host:}</str> <int name="hostPort">${jetty.port:8983}</int> Tomás On Wed, Mar 23, 2016 at 11:26 PM, Hendrik Haddorp <hendrik.hadd...@gmx.net> wrote: > Hi, > > is it possible to instruct Solr to publish a different host/port into > ZooKeeper then it is actually running on? This is required if the Solr > node is not directly reachable on its port from outside due to a NAT > setup or when running Solr as a Docker container with a mapped port. > > For what its worth ElasticSearch is supporting this as documented here [1]: > - transport.publish_port > - transport.publish_host > > regards, > Hendrik > > [1] > > https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html >