Description
The Windows solr.cmd script makes the (incorrect) assumption that Solr will always be listening on 0.0.0.0 (all interfaces). When you change the interface
address, say to 127.0.0.1, then the status and stop commands will fail.
This patch adds a property in solr.in.cmd, which is passed to SOLR_OPTS as -Djetty.host, and replaces the instances of 0.0.0.0 in solr.cmd.
The patch includes some changes in the netstat logic used in solr.cmd to find the correct Solr process(es).
Tested on Solr 5.5 on Windows 7 and 10.
Note: Untested on Solr 6. Currently using Solr 5.5