I'm using version 10.2 on Linux, and need to access some web services via proxy server sometimes. Is there a way to change the proxy settings, which can be modified manually in the "Preferences" AFAIK, programmatically because the settings may vary in different contexts? I looked into SystemOptions[] etc but didn't find anything related.

  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$
    – Michael E2
    Commented Dec 11, 2015 at 10:56

1 Answer 1


One can read the current setting using the undocumented symbol $InternetProxyRules.

The undocumented functions to change the proxy settings are in the PacletManager` context.

The "Use proxy settings from my system or browser" setting is equivalent to


the "Direct connection to the Internet" setting is equivalent to


and the "Use the following settings:" setting is equivalent to


Proxy settings can be set with PacletManager`SetInternetProxy. For example

PacletManager`SetInternetProxy["HTTP", {"proxystring", 1}]

would set the HTTP Proxy to proxystring and its corresponding port to 1.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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