All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Will Low GoogleSearch work behind vpn?

dlufkin 6 Nov 2013 21:40 problem, complete

Our dev site using google search appliance is behind a VPN, as is the GSA.

When I run a search I'm receiving the following error message. Any thoughts on the cause?

Error Message:

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Filename: low_googlesearch/mod.low_googlesearch.php

Line Number: 842

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(http://http://192.168.1.68/search?q=a...): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

Filename: low_googlesearch/mod.low_googlesearch.php

Line Number: 842

The following errors were encountered

Error getting http://http://192.168.1.68/search?q=a...

Please check your settings or try again later

Replies

  1. Low 7 Nov 2013 07:18

    I've never tested this, to be honest, so I'm not sure if it will/can work. Will look into it.

  2. Low 7 Nov 2013 07:31

    From what I can find so far, a VPN connection is established via the OS, not via PHP. So if your dev server can connect to the GSA via this VPN, it should probably work, but that's not something the add-on can establish using PHP.

  3. StevenLangbroek 7 Nov 2013 09:08

    I have no knowledge of this whatsoever, but looking at your code http:// gets prepended twice...

    Low 7 Nov 2013 09:09

    Heh, well spotted. Hadn't even noticed.

  4. dlufkin 7 Nov 2013 13:53

    Good catch Steven. I hadn't noticed that either.

    For the host I had 'host="http://192.168.1.68" instead of just the IP address. Remove the http:// and everything works great (as expected).

    Thanks for your help.

  5. Low 7 Nov 2013 14:59

    Good to hear. And thank you, Steven!