"Error using connector.ensureServiceOn" when clicking "Get Add-Ons"
28 views (last 30 days)
Show older comments
Esther on 30 Nov 2015
Commented: MUTHUKUMARASAMY V on 31 Dec 2020
Asking this question in case anyone else has faced the same problem / has found a solution.
Release: R2015b 64 bit, Windows.
When clicking on "Get Add-Ons", this error message pops up on the command window:
Error using connector.ensureServiceOn
Error starting MATLAB Connector. Please check that port 31515 is available.
com.mathworks.jmi.MatlabException: Error starting MATLAB Connector. Please check that port 31515 is available.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
What I've tried:
- Allowed R2015b.exe in the Firewall for inbound and outbound connections.
- Allowed TCP port 31515 in the Firewall for inbound and outbound connections.
Still no luck.
Dave Behera on 4 Dec 2015
The issue is related to the network configuration. One possible workaround is forcing JVM to use IPv4 over IPv6 by setting the java.net.preferIPv4Stack config. The following discussion page provides some relevant discussion:
To work around this issue create a new System Variable named JAVA_TOOL_OPTION, with the value -Djava.net.preferIPv4Stack=true
More Answers (2)
AFTAB ALAM ANSARI on 22 Nov 2017
Don't go for rubbish like "it's because of JAVA". This happens when MATLAB is blocked by some firewall that is blocking MATLAB from connecting to Internet. MATLAB uses Internet during Stimulation. Just exclude it from firewall and there you go. There will be no error.
Hicham Belh on 16 Dec 2018
i got this error by click on getaddon:
Version: Matlab 2018a
Error using connector.internal.doEnsureServiceOn
was: Server did not respond to initial request: 127.0.0.1:31714
Error in connector.ensureServiceOn
start the server. Desired port was: 31515. Last error was: Server did not respond to
initial request: 127.0.0.1:31714
thx for any help
MUTHUKUMARASAMY V on 31 Dec 2020
I too get the same error when opening model configuration parameters
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!