Why do I get a connection error when installing or activating MATLAB or other MathWorks products?
Show older comments
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.
Accepted Answer
More Answers (7)
Sean
on 30 Jul 2014
24 votes
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.
1 Comment
Walter Roberson
on 24 Jan 2020
Try looking in ~/Downloads/MathWorks/R2019b/ perhaps? That is where the installer tosses the installation program and archives .
Brett Hansell
on 8 Oct 2019
22 votes
- Under System Variables, select New.
- Set the first variable name "JAVA_TOOL_OPTIONS" with the value of "-Djava.net.preferIPv4Stack=true" (enter these without the quotation marks)
- select New again.
- 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
- Click OK again on the previous screen and try the installer again.
Yehya Jebbaoui
on 28 Sep 2017
21 votes
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.
Gregg Casey
on 29 Dec 2017
15 votes
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.
khalid Houhou
on 28 Feb 2018
10 votes
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.
Jan
on 14 Mar 2019
3 votes
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.
Walter Roberson
on 17 Apr 2021
2 votes
Data point for MacOS Catalina:
I have not had difficulty downloading or authenticating to Mathworks until just now. I was installing R2017b onto MacOS Catalina; the download worked, but when I went to register the license, it gave me an error message (that linked to this topic.)
I looked in MacOS security settings, and reviewed everything, but did not find anything relevant. I did happen to notice that my Kensington Trackball manager was blocked from accessing the network, so I authorized that, but I really doubt that made any difference.
I went back to try the authentication again, and this time it worked without problem.
I don't think authorizing the trackball was at all relevant; I think it was just the trying again that made the difference.
2 Comments
Walter Roberson
on 25 Apr 2021
I just had the same problem for R2016a -- first authentication attempt said that it could not connect to Mathworks, second authentication attempt worked fine.
Walter Roberson
on 2 Jan 2025
I have have since had this difficulty a number of times: the first authentication attempt for registering fails, but the second one succeeds.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!