Did not start the server. Desired port was: 31415.

204 views (last 30 days)
yu wang
yu wang on 23 Feb 2019
Commented: PRASHANT KUMAR on 17 Aug 2021
Did not start the server. Desired port was:
31415. Last error was: Server did not respond to initial request:
how to solve this?
  1 Comment
Walter Roberson
Walter Roberson on 23 Feb 2019

Sign in to comment.

Answers (2)

Abiola Olaleye
Abiola Olaleye on 3 Mar 2020
To add a Windows firewall port exception:
  1. On the client operating system, go to Start>Run and type firewall.cpl. The Windows Firewall window opens.
  2. Click on the “Advanced Settings” link on the left pane. The Windows Firewall with Advanced security window opens.
  3. Click on the “Inbound Rules” option.
  4. On the left pane, click on “New rule”.
  5. Under “Rule Type” select the option “Port” and click next.
  6. Select “TCP”and “specific local ports” options.
  7. Key in the port number, the default port is TCP port 135.
  8. Click Next.
  9. Select the option “Allow the connection”.
  10. Click Next, do not change any option here and click Next again.
  11. Specify a name for this rule.
  12. Click Finish.

Naman Bhaia
Naman Bhaia on 26 Feb 2019
Hi ,
Some workarounds that can help are:
1. Try the connector in your web browser from the localhost address: Make sure that the connector is running on the specified port on your computer. To do so, open your web browser and navigate to:
(If you specified a different port number while installing the components, replace 31415 with your port number.)
If the connector can use the port, a message appears in the browser window, such as:
"MATLABConnector is set up correctly!"
Otherwise, consider changing the port number to something other than 31415 (if you did not change the port during initial configuration). Valid values are from 1,024 through 65,535. For help selecting the port, contact your system administrator. For instructions on changing the port, see Changing the Port and Updating Connections
2. Try the connector in your browser using your IP address or Fully Qualified Hostname:
Is a firewall or antivirus software blocking access to the port? To test, open a web browser on your local computer and navigate to:
The computerID is the fully qualified DNS name or IP address of your computer. If the test is successful, the connector displays a message in the browser window, as described in the previous step. Otherwise, modify your firewall or antivirus settings to allow the use of the port. For help with these settings, contact your system administrator.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!