title: Solarium gets "Permission Denied" when trying to connect apache solr at local ip
body: <p>I have a drupal 8 site on the same physical server as apache solr (5.2.1). Drupal 8 uses the search_api_solr contrib module, which uses Solarium (installed by composer) to talk to the solr server using the http api. </p>
  
  <p>I have successfully installed solr and created a core. I can query the core using cUrl on the linux command line, using various linux users. </p>
  
  <p>I can access the solr admin screen in a browser (over vpn with 192.168 ip or domain resolving to such) and view the core I created on the cli. </p>
  
  <p>However, the drupal solr module cannot connect to the solr server core, and if I create an index using the drupal module, it throws a php error: </p>
  
  <p>[error] Uncaught PHP Exception Solarium\Exception\HttpException: "Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1: Permission denied" at modules/search_api_solr/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php line 248</p>
  
  <p>My url is like this: <a href="http://127.0.0.1:8983/solr/mycore" rel="nofollow">http://127.0.0.1:8983/solr/mycore</a></p>
  
  <p>I get the same error for </p>
  
  <p><a href="http://192.168.254.78:8983/solr/mycore" rel="nofollow">http://192.168.254.78:8983/solr/mycore</a></p>
  
  <p>or</p>
  
  <p><a href="http://127.0.0.1:8080/solr/mycore" rel="nofollow">http://127.0.0.1:8080/solr/mycore</a> &lt;&lt; different port!</p>
  
  <p>Why should Solarium not be able to send http to a local ip?</p>
  
  <p>Note that nothing is listening on 8080, so I suspect that this http failure has nothing to do with the solr server. </p>