MATLAB Answers

Why do I get a connection error when installing or activating MATLAB or another MathWorks product?

9,233 ビュー (過去 30 日間)
I get an error that I cannot connect to MathWorks when running the MathWorks installer or the activation client; however, I can access the website. Why can't the MathWorks Installer or activation client connect to the MathWorks?
Connection Error
The application could not connect to MathWorks.
For more information on resolving this issue, see this Support Article.

採用された回答

MathWorks Support Team
MathWorks Support Team 2020 年 4 月 1 日
編集済み: MathWorks Support Team 2020 年 9 月 25 日
Computer Security software is preventing the MathWorks Installer from connecting to the MathWorks servers. This is known as a connection issue due one or more of the following:
  • Antivirus Software
  • Proxy
  • Firewall
Antivirus Software
To temporarily disable your Antivirus on Windows:
  1. Locate the Antivirus protection program icon on the Windows system tray.
  2. Right-click the icon and select Disable, Stop, etc. to temporarily disable the program. In some cases, you may need to open the program and disable it using the program's menus.
To temporarily disable your Antivirus on a Mac:
  1. Locate the Antivirus icon found on your Mac menu bar.
  2. Click Shut down or disable temporarily until installation and activation have completed.
To temporarily disable your Antivirus on a Linux:
  1. Locate the Antivirus protection program icon on the Linux system tray.
  2. Click Shut down or disable temporarily until installation and activation have completed.
Proxy
The MATLAB installer, activation client and update installer will try to automatically inherit your computer's proxy settings on Windows. If this process fails, you may need to manually enter your settings using the "connection settings" button on the first screen of the installer or activation client. The update installer will not allow you to enter your proxy credentials as it automatically inherits your computer's proxy settings. On Mac and Linux, you will always need to enter these settings manually.
To disable your Proxy in Internet Explorer:
  1. Click the Tools button and then select Internet Options.
  2. Click the Connections tab and then select LAN settings.
  3. Uncheck the check box for Use a proxy server for your LAN.
To disable your Proxy in Chrome:
  1. Open the Customize and Control Google Chrome menu by clicking on the three-dots icon at the top right of Google Chrome, select Settings on the right, find Advanced and finally select o*pen proxy settings.*
  2. Select the LAN Settings button.
  3. Deselect the checkbox for Use a proxy server for your LAN.
To disable your Proxy in Safari:
  1. Go to Menu and click on Preferences from the drop-down menu.
  2. Select the Advanced tab and then click on the Change Settings button.
  3. Deselect the checkbox for Use a proxy server for your LAN.
To disable your Proxy in Firefox:
  1. Click the Tools button and select Options.
  2. Go to the Advanced panel and select the Network tab.
  3. Click on Settings in the Connection Section and select No Proxy.
You will need to contact your IT Help Desk to troubleshoot this issue if you don't know your proxy settings or the error persists after entering your proxy settings.
Firewall
You will need to contact your IT Help Desk if your organization is running a network firewall to configure it to bypass blocked connections to the MathWorks servers.
The MathWorks installer needs to contact MathWorks servers on the following ports and addresses:
  • login.mathworks.com
  • services.mathworks.com
  • TCP ports 80 and 443
Your firewall needs to bypass blocked connections for both addresses over both ports. These servers do not use a Static IP Address and will resolve to a Dynamic IP Address. This means that users will not be able to white-list MathWorks servers via IP Address and will have to use the domain name.
If the MathWorks installer is still unable to connect after troubleshooting your proxy and firewall, submit a service request using the link below. Please include the troubleshooting steps you took to resolve the connection issue, and include your installation log file. See this related article if you need assistance locating your log file:

  32 件のコメント

表示 29 件の古いコメント
MARIO CHANG
MARIO CHANG 2020 年 5 月 14 日
None of the ‘fixes’ mentioned above fixed the error on Catalina OSX. The Proxy setting checkbox doesn’t even exist.
Was able to install R2020a with this procedure:
1. Download installation folder using another computer 2. Copy folder to desired computer 3. Edit ‘installer_input.txt’ per instructions in ‘installer_input.txt’ 4. From terminal, run the ‘install’ unix executable. Note that install is also a built-in OSX command, so must invoke the unix executable using full path.
For example: /Users/username/Downloads/Matlab/R2020a/install -inputFile editedfile.txt
Andrea Silvestro
Andrea Silvestro 2020 年 5 月 18 日
MARIO CHANG could you help me? I do not understand your explanation. What is the installation folder? I do not have access to another Mac.

サインインしてコメントする。

その他の回答 (72 件)

Sean
Sean 2014 年 7 月 30 日
When I received this error, it was not due to proxy settings or firewall settings. Rather, when I downloaded the installer, the download location was on a remote drive (a windows remote profile DFS location). I copied the setup file to the local drive, and it ran fine.

  12 件のコメント

表示 9 件の古いコメント
Walter Roberson
Walter Roberson 2020 年 1 月 24 日
Which drive are you asking about, Rojitha Goonesekere ?
Try looking in ~/Downloads/MathWorks/R2019b/ perhaps? That is where the installer tosses the installation program and archives .
Tong Li
Tong Li 2020 年 4 月 16 日
It is so useful!!! I change the download files location from 'download' to 'program files/matlab' and it installed successful!!!
parisa rashidi
parisa rashidi 2020 年 10 月 31 日
This answered for me. It was so good . Thankful

サインインしてコメントする。


khalid Houhou
khalid Houhou 2018 年 2 月 28 日
I had this issue and it was not related to any network or connection. It was caused by a Malware I had in my PC called relevantknowledge. I uninstall it and it worked.

  10 件のコメント

表示 7 件の古いコメント

サインインしてコメントする。


Brett Hansell
Brett Hansell 2019 年 10 月 8 日
  1. Under System Variables, select New.
  2. Set the first variable name "JAVA_TOOL_OPTIONS" with the value of "-Djava.net.preferIPv4Stack=true" (enter these without the quotation marks)
  3. select New again.
  4. Set the second variable name "JAVA_OPTIONS" with the value of "-Djava.net.preferIPv4Stack=true" (enter these without the quotation marks) and click on OK
  5. Click OK again on the previous screen and try the installer again.

  9 件のコメント

表示 6 件の古いコメント
Patel Reddy
Patel Reddy 2020 年 5 月 14 日
phew, that resolved the installation error! Thanks Brett

サインインしてコメントする。


Brian Zarling
Brian Zarling 2015 年 2 月 16 日
I turned off my firewall and I still can't connect to Mathworks.

  6 件のコメント

表示 3 件の古いコメント
John Geddes
John Geddes 2020 年 7 月 30 日
If you are still experiencing this issue, please create a service request below.
-Colin Fraser
Shweta Saha
Shweta Saha 2020 年 7 月 31 日
Thank you.. I have created the service request...
Daniel Torres
Daniel Torres 2020 年 8 月 26 日
I was getting installation errors left and right. I did an internet speed test and saw I was pulling only 10MB. I relocated my wireless dongle, retested, 150MB. Tried again - installed successfully.
Seems the installer is persnickity with your download speeds.

サインインしてコメントする。


Chris Håkansson
Chris Håkansson 2015 年 2 月 23 日
I had the same problem and followed all instructions above about filling in proxy-server information and deactivating the firewall etc. but nothing worked. Turned out all I needed to do was uncheck the box which indicates to use a proxy server. It is as mentioned in other links found in Control Panel/Internet Options/Connections/Lan Settings.

  4 件のコメント

表示 1 件の古いコメント
Benyue Zhao
Benyue Zhao 2017 年 10 月 24 日
I had the same problem. Now it works. Thanks a lot!

サインインしてコメントする。


Caitlyn Hampel
Caitlyn Hampel 2015 年 5 月 24 日
I had this problem as well, but I found that it was because my internet connection was too slow. So it only worked when I used a faster connection. Beware that the downloads during installation are rather large files, including the toolbox add-ons. Hope this information can be of help to others.

  2 件のコメント

Mark Hulley
Mark Hulley 2016 年 6 月 9 日
I had the same issue but it must have been my connection speed, because it worked on the third attempt without me actually changing anything.
Thomas Lo
Thomas Lo 2020 年 1 月 21 日
I just ignored the error message by clicking OK. Then click NEXT again and it worked.

サインインしてコメントする。


Gregg Casey
Gregg Casey 2017 年 12 月 29 日
Had the same problem on my Mac and I have never had a problem like this on a Mac since I have used them. (Probably more than 8 years.) My laptop did not have the firewall turned on at all during all attempts. So this is probably just badly written software from Mathworks. What worked for me is to use my hotspot. That is all I changed - connect to my Karma hotspot and click "Next" again. Done. Note that I first did the same after connecting to my iPhone as a hotspot and that did not work. (Just clicked "next" and got the same error message.) However, that could have been that my phone was having a connection issue.
Mathworks- please look into this issue and fix it. The software should not require special proxy settings.

  3 件のコメント

jinxxx
jinxxx 2018 年 5 月 3 日
Me too, maybe you should try it for a couple more times. I only successfully installed it after 10 times, but I made it at last.
Ben Zhao
Ben Zhao 2018 年 11 月 30 日
I can only use hotspot to install. Have tried every method that I can imagine.
Kyle Perry
Kyle Perry 2018 年 12 月 12 日
Hello Ben,
If you are unable to activate successfully through your hotspot, you can try to activate MATLAB through the manual method. I have attached a link below that explins this process:

サインインしてコメントする。


Jon
Jon 2014 年 12 月 16 日
On a Mac (running 10.10 [Yosemite]) I still needed to temporarily disable the Firewall (under System Preferences > Security & Privacy) in order to complete activation.

Donald Niman
Donald Niman 2015 年 2 月 23 日
This is what I did to successfully install Matlab (Home Use) on my Windows 7 x64 SP1 system. Note that I do not know which one of the following things helped to make things work; I just did all of them. Also note that I am not using a proxy server, if you are, this will probably not help you.
1. Turned off internet router and then turned it back on.
2. Restarted the PC in Safe Mode.
3. If applicable to you: The installation file was on hard drive volume D:\ and I moved it to C:\
4. From control panel->administrative tools->Services, I right-clicked "Windows Firewall" and selected "Stop".
5. I ran the Matlab installation file from c:\.
6. When the installation screen came up, I did not click on the button at the top right of the dialog. Instead, I clicked the "next" button at the bottom. (Of course, I am not using a proxy server.)
7. A dialog appears to enter your login credentials: do that and the installation will continue.
8. The installation will eventually complete and then you can activate it by following the on-screen directions.
9. I restarted the system normally and verified that Matlab was working.
(Hopefully, I did not leave anything out.)

  4 件のコメント

表示 1 件の古いコメント
Felipe Alandete
Felipe Alandete 2019 年 12 月 13 日
Thank you!! The step 6 worked for me. I had pressed that buttom by mistake

サインインしてコメントする。



Anna Smirnova
Anna Smirnova 2018 年 7 月 1 日
Error : unable to connect to host. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Windows 7 64-bit. What am I doing wrong?

  0 件のコメント

サインインしてコメントする。


Matthias Finsterbusch
Matthias Finsterbusch 2018 年 7 月 2 日
I am trying to install Matlab 2018b on a Win10 64bit System, getting the following error:
"Error : unable to connect to host. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
Any instructions how to handle this problem? Thanks in advance.

Jan
Jan 2019 年 3 月 14 日
Create the two environment variables
  • "JAVA_TOOL_OPTIONS" with the value "-Djava.net.preferIPv4Stack=true"
  • "JAVA_OPTIONS" with the value "-Djava.net.preferIPv4Stack=true"
Run the installer. Afterwards the variables can be removed.

  3 件のコメント

XiaoQian Ye
XiaoQian Ye 2019 年 11 月 29 日
Also did the trick for me. Thanks. (After tried Firewall, antivirus, proxy all off). Mind giving a headup what the paramenters did? Thanks again!
Ani Padma
Ani Padma 2020 年 7 月 11 日

Thanks a lot Jan, I tried all other suggested solutions with no success...I was even considering upgrading my laptop to a new one thinking it might be a hardware issue.However, this environment variables solution worked for me...Phew!!

サインインしてコメントする。


Charles Dalley
Charles Dalley 2015 年 5 月 5 日
Right. I have restarted the process multiple times! I've checked all the suggested settings and turned off windows firewall, but every time I get to the 'select license' page having logged in, it stops me from proceeding even though it clearly is connected as it got the details in the first place!
and it blocks me from doing the license file thing, saying 'no products exist for this license' even though I activated it for 2014a
HELP, I HAVE COURSEWORK DUE

  1 件のコメント

Scott
Scott 2015 年 7 月 22 日
Hi Charles,
If you are still having trouble installing MATLAB, please contact MathWorks support:
-Scott
MathWorks Installation & Licensing Support

サインインしてコメントする。


Furkaan Hossain
Furkaan Hossain 2017 年 8 月 25 日
Hi there, I am using a Window's 10 on my pc. Not a part of any organizations. As far as I can tell I am not using a proxy server and I tried installing MATLAB with my firewall turned off as an administrator. I am still encountering the connection error. Any help in the matter would be greatly appreciated. Thnks

  6 件のコメント

表示 3 件の古いコメント
Cameron Johnson
Cameron Johnson 2017 年 9 月 11 日
Experiencing this problem as well after troubleshooting on Sept. 11, 2017 from 2:00pm to present (3:43PM)
Alexander Casalis de Pury
Alexander Casalis de Pury 2017 年 10 月 6 日
Is it still down? My error just reads 'The application could not connect to MathWorks' and nothing about firewalls or proxys

サインインしてコメントする。


Yehya Jebbaoui
Yehya Jebbaoui 2017 年 9 月 28 日
Turn off the Wifi of the institution you are in, then turn on Mobile hotspot on your phone to share the mobile connection (if you have 3G or 4G). You will pass the first steps and it will start downloading. When it starts downloading, switch to the wifi. It worked for me.

  2 件のコメント

Nagwa megahed
Nagwa megahed 2020 年 12 月 11 日
thank you , it really becomes the suitable solution for me everytime i install matlab

サインインしてコメントする。


Dewi Mar'a
Dewi Mar'a 2018 年 11 月 20 日
I am dealing with the same problem. After almost a week I tried to install matlab more than hundred times, then I got no solution at all. My windows firewall was off, no proxy setting, no anti virus installed, even no matlab installed yet.
I am getting deperate with this problem because my deadline project comes closer, and I wasted the time too much to deal with this problem.
finally I end up with the last solution left, I tried to uninstall my windows, and try to install matlab again. BAAAAMMM....it works. do anything to get out of this stuck step. if it ends with great result, why not ? haha

  1 件のコメント

lin hv
lin hv 2019 年 8 月 16 日
I feel so sorry about that. I am still through this annoying problem, yet I have to spend my time on those matter more.

サインインしてコメントする。


Handing Sun
Handing Sun 2019 年 4 月 23 日
I am trying to install the 2019a on a win10 machine. I did the proxy setting, dont't have a antivirus softward, and the firwall doesn't seems to be a problem. But the connection error still exist.

  3 件のコメント

Colin Fraser
Colin Fraser 2019 年 6 月 5 日
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Colin
ying han
ying han 2019 年 10 月 15 日
same issue! i tried to install it more than hundred times

サインインしてコメントする。


Wu Ke
Wu Ke 2019 年 5 月 9 日
Why have you anything else

  2 件のコメント

Colin Fraser
Colin Fraser 2019 年 5 月 22 日
Hi Wu Ke,
If you need assistance, Installation and Licensing Support can be reached at +1-508-647-7000. Dial option 3, then 1 at the menu.
You can also create a request online. https://www.mathworks.com/support/contact_us.html
Colin

サインインしてコメントする。


Luke
Luke 2014 年 11 月 26 日
編集済み: Luke 2014 年 11 月 26 日
Internet security software designed to block certain IP ranges such as PeerBlock have MathWorks black listed in the default block-list.
Just set the blocked IP to "allow permanently" to let the installer connect and download your license details, software and associated toolboxes.

  1 件のコメント

Walter Roberson
Walter Roberson 2017 年 1 月 16 日
Mathworks delivers some of its content using one of the major cloud providers. It might be the case that the cloud provider is what is blacklisted rather than Mathworks itself.

サインインしてコメントする。


Greg Laurie
Greg Laurie 2015 年 5 月 2 日
I've also tried all of these tips, but activation via my account here doesn't work. So I tried using the File Installation Key process, but I always get the following error message: "Using a File Installation Key requires you run the installer from a MATLAB DVD or from a directory which contains files previously downloaded via the installer. To obtain the missing files, click Back on the previous screen and select Log in with a MathWorks Account or contact your MATLAB license administrator." I did get the licence code file and all. Any ideas? I need the software for a Coursera MOOC about Computational Neuroscience. Thanks in advance!

  1 件のコメント

Scott
Scott 2015 年 7 月 22 日
Hi Greg,
If you are still having trouble installing MATLAB, please contact MathWorks support:
-Scott
MathWorks Installation & Licensing Support

サインインしてコメントする。


Bradley Alderton
Bradley Alderton 2015 年 5 月 6 日
Charles, i'm in the same position as you. I have coursework due tomorrow and this is quite a headache!

  1 件のコメント

Scott
Scott 2015 年 7 月 22 日
Hi Bradley,
If you are still having trouble installing MATLAB, please contact MathWorks support:
-Scott
MathWorks Installation & Licensing Support

サインインしてコメントする。


Carsten Jorgensen
Carsten Jorgensen 2015 年 7 月 15 日
I just came across this same error. At first, I assumed it was because I was installing on a Windows XP system. When I discovered that Win XP was still supported for 2015a, I decided to troubleshoot further.
My resolution: The system could not communicate with the MatLab servers because the Date/Time on the system was inaccurate. - Setting the systems Date/Time correctly resolved the issue.

  0 件のコメント

サインインしてコメントする。


Andreas
Andreas 2015 年 9 月 15 日
The setup program was trying to go to the IP address of the mathworks site instead of DNS name. Had to add https://144.212.244.21 and https://144.212.244.16 to the firewall.
It is unclear to me why MathWorks would use fixed IP addresses instead of DNS. Please fix this issue.

  1 件のコメント

Scott
Scott 2016 年 5 月 4 日
Andreas,
The installer does reach out to the MathWorks servers using DNS, not IP address. The IP addresses for those servers are static, yes, but that's not what the installer uses to reach them.
If the MATLAB installer is consistently resolving the wrong IP address for MathWorks service and activation servers on your machine, please contact MathWorks support so we can troubleshoot this issue.
Thanks,
-Scott
MathWorks Installation & Licensing Support

サインインしてコメントする。


Tony Langley
Tony Langley 2015 年 12 月 5 日
I recently faced the same issue on my Mac. It wasn't because I was using a network proxy (per se) or that the I had OSX's firewall turned on.
Eventually I worked out that it was because of Kaspersky Internet Security. So I temporarily disabled that which then allowed the installer to work.

  3 件のコメント

Günther Wal
Günther Wal 2016 年 1 月 12 日
I had the same prob on my mac. I discovered that I have to open it in the same network as I installed the software. Support didn´t provide any help. For me it´s over and out, I stick with Mathematica...
Walter Roberson
Walter Roberson 2016 年 1 月 12 日
Mathematica uses exactly the same license manager (but possibly a different revision at present.)
aMusings
aMusings 2016 年 1 月 30 日
Having this issue on a Mac with El Capitan. Confirmed with Network Utility that we could reach both ports 80 and 443 at both urls listed above. Firewalls were turned off on both individual machine and router. Suggestions?

サインインしてコメントする。


Manoella Sánchez
Manoella Sánchez 2016 年 1 月 7 日
I have a problem with the process. I need log in with MathWorks account. The messenge is " The application could not connect to MathWorks. For more information on resolving this issue, see this Support Article" Please help me.

  1 件のコメント

Saurabh Sharma
Saurabh Sharma 2016 年 2 月 1 日
I am facing the same problem and no reply for MathWorks support team.

サインインしてコメントする。


Birds Mafereka
Birds Mafereka 2016 年 2 月 24 日
The following error was detected while downloading 3p/icu_win64_1438296709.enc: null Would you like to retry downloading 3p/icu_win64_1438296709.enc? If you press No, the installer will exit without completing the installation. Hepl please I got this error and it keeps on poping when trying to download?????

  1 件のコメント

Scott
Scott 2016 年 5 月 4 日
Hi Birds,
This type of error usually indicates that security software or antivirus software installed on your machine is interfering with the MATLAB installer. To resolve this issue, add the MATLAB installer to your security software's whitelist, or disable your security software for the duration of the installation.
Thanks,
-Scott
MathWorks Installation & Licensing Support

サインインしてコメントする。


Yu Xiong
Yu Xiong 2016 年 3 月 8 日
I have got the same issue here and no idea what I should fill in on Server and Port.

  2 件のコメント

Steven Lord
Steven Lord 2016 年 3 月 8 日
Please contact Technical Support using the Contact Us link in the upper-right corner of this page for assistance.

サインインしてコメントする。