Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have Mathematica setup normally and connections work. However, when I want to use it to connect through my SSH tunnel program (Tunnelier), it throws the error

PacletSiteUpdate::err: An error occurred attempting to update paclet information from site http://pacletserver.wolfram.com. Server returned nothing (no headers, no data)

meanwhile I get the following error message in Tunnelier:

(unrecognized proxy protocol) connection from 127.0.0.1 failed: Unsupported client protocol; the client may be expecting a regular HTTP proxy

I have left the HTTP, HTTPS and FTP proxy fields blank, and only filled in the SOCKS IP (127.0.0.1) and the port (9494). Firefox and IE can successfully connect via the same SSH tunnel. I have also tried it with a similarly working Putty tunnel, with it throwing the exact same error, just with no output from the Putty client.

share|improve this question
    
Did you try this troubleshooting page? What did you see? Specifically: "If the Test Network Connectivity button (described in "Test Internet Connectivity") fails after a minutes-long delay, an incorrect SOCKS proxy configuration is likely to be the problem. Mathematica does not require a SOCKS proxy, but will attempt to use one if the SOCKS proxy information is available." –  Sjoerd C. de Vries Apr 25 '13 at 12:37
    
What does $InternetProxyRules say? –  Sjoerd C. de Vries Apr 25 '13 at 12:38
    
With "...and connections work" you mean the connections work for Mathematica or in general, but not for Mathematica? –  Sjoerd C. de Vries Apr 25 '13 at 14:00
    
I mean that connections work for Mathematica when not using a proxy. –  March Ho Apr 26 '13 at 15:03
    
$InternetProxyRules gives the following output: {"UseProxy" -> True, "HTTP" -> {}, "HTTPS" -> {}, "FTP" -> {}, "Socks" -> {"127.0.0.1", 9494}} –  March Ho Apr 26 '13 at 15:05

1 Answer 1

up vote 2 down vote accepted

As I wrote in my earlier comment, I got the same error messages in the two-PC client/server Tunnelier system I set up specifically for this question. Apparently Mathematica's handling of proxies is not really up to the task, as I have had many problems with them before (in particular proxies in an NTLM environment).

I did have some success by adding the proxy Privoxy between Mathematica and Tunnelier. I configured Privoxy to connect to Tunnelier as parent and let it forward connections by setting the "SOCKS/HTTP proxy forwarding" option to enabled. With Mathematica configured to use Privoxy as proxy (not with SOCKS but using HTTP) the connection test in Mathematica's network preferences panel works, as do many of the cumputable data functions (FinancialData, CityData,WeatherData to name a few). However others, like ParticleData, systematically fail.

Privoxy has many parameters to tune (connection keep-alive, time-outs etc.) and there may be a solution to find there for those functions that currently do not work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.