MATLAB Answers


How can I configure my proxy server settings within MATLAB?

I have a proxy server in use and need to enter the information to allow MATLAB to connect to the Internet. How can I configure MATLAB to use my proxy server?


2 Answers

Answer by MathWorks Support Team on 14 Jun 2019
 Accepted Answer

To configure your proxy settings in MATLAB:
1) Launch MATLAB
2) Select the "Home" tab
3) Select "Preferences"
4) Select "Web"
5) Check the box labeled "Use a proxy server to connect to the Internet"
6) Fill in your proxy information
7) If authentication is necessary, check the box labeled "Use a proxy with authentication" and fill in the appropriate information
8) Use the "Test connection" button to verify that the information entered was correct
NOTE: Only R2008b and newer has the ability to test the proxy connection and enter authentication information.


Joe T asks:
how can you adjust the encryption method?
I would prefer to switch the settings from the command line. How can I do that?'UseProxyServerToConnectToTheInternet',false) seems not to be correct.
you can see all methods with
but these do not seem to take effect immediately. Instead you could use the API:
com.mathworks.mlwidgets.html.HTMLPrefs.setProxyHost('') % or whatever

Sign in to comment.

Answer by truong xuan hai on 15 Mar 2019

how can I get proxy host and proxy port?

  1 Comment

You can look inside your browser configuration.
In IE:
Gear Symbol -> Internet Options -> Connection -> LAN Settings
In FF:
Burger-Menü -> Settings -> Network-Proxy
Or ask your network admin

Sign in to comment.