Why do I get "Server failed to start (error code = 10048)" when launching MATLAB Production Server on Windows?

4 次查看(过去 30 天)
When trying to start a MATLAB Production Server instance via the dashboard on Windows, I am getting the error "Server failed to start (error code = 10048)". How do I resolve this error?

采纳的回答

MathWorks Support Team
MathWorks Support Team 2025-11-11,0:00
This error occurs when the port specified for your MATLAB Production Server instance is either blocked by a firewall or already in use by another application or Instance.
The same error code = 10048 and cause applies when starting an Instance through the Dashboard or through the Command Line using the scripts. 
To resolve this, you will need to free up the port, or configure your server instance to use a different, available port.
Confirm the Port Status
  1. Find the HTTP port you are trying to start the instance with.
    1. Dashboard: The HTTP port is in the "Settings" tab of the Instance.
    2. Script: The HTTP port is listed as --http <port> in the main_config file of the Instance.
      "Path\To\Instance\config\main_config"
  2. Enter the following in Command Prompt replacing <port> with the port number in use:
    netstat -ano | findstr :<port>
  3. If the above command outputs results for the port number, the port is in use. If you would like to identify the process using the port based on the PID obtained from the netstat output, enter the following in command prompt:
    tasklist | findstr <PID>
Resolve the Port issue:
Once you confirm the port is in use, you can either:
  • Stop the other application/service to free up the port and allow MATLAB Production Server to start the Instance.
  • Change the Port the Instance is trying to start with, by editing the HTTP port
    • Dashboard: The HTTP port is in the "Settings" tab of the Instance.
    • Script: The HTTP port is listed as --http <port> in the main_config file of the Instance
Check the Firewall Settings
It's possible that you may encounter an error even if the port is not use.
Allow for inbound and outbound connections for the port or add an exception for MATLAB Production Server.
Restart MATLAB Production Server
If the issue persists, restart MATLAB Production Server.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Server Management 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by