How can I get Solr listening on 0.0.0.0 instead of just localhost?
- by Neil
I'm trying to get Solr to listen on 0.0.0.0 instead of just localhost, and it doesn't seem to be picking up the configuration options.
I downloaded apache-solr-1.4.1 from the Solr website, and I'm running:
user@:apache-solr-1.4.1/example $ java -jar start.jar
With these configuration options:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.bio.SocketConnector">
<Set name="host"><SystemProperty name="jetty.host" default="0.0.0.0" /></Set>
<Set name="port"><SystemProperty name="jetty.port" default="8983" /></Set>
<Set name="maxIdleTime">50000</Set>
<Set name="lowResourceMaxIdleTime">1500</Set>
</New>
</Arg>
</Call>
Where the only line changed from the default is this one:
<Set name="host"><SystemProperty name="jetty.host" default="0.0.0.0" /></Set>
And when I check netstat, I see this:
$ netstat -an | egrep 'Proto|\b8983\b'
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:8983 0.0.0.0:* LISTEN
tcp6 0 0 ::1:8983 :::* LISTEN
Where Local Address should be 0.0.0.0:8983 instead of 127.0.0.1:8983.
Does anyone know why this might not be working?