MATLAB: Do I receive a Connector error with last error “Address already in use” when launching MATLAB or Simulink

addressalreadyconnectorerrorexceptioninissueMATLABnetstartinguse

Why do I receive the following error when starting MATLAB?
Warning: Issue starting Connector. Please check that port 31415 is available. Did not start the server. Desired port was: 31515.
Last error was: Error while starting socket: Net Exception: Address already in use: 127.0.0.1:31714, 10048
Or the following error when starting Simulink? ERROR: Warning: Error in Connector: Did not start the server. Desired port was: 31515. Last error was: Error while starting socket: Net Exception: Address already in use: 127.0.0.1:31714, 10048

Best Answer

This issue is related to the fact that MATLAB tries to bind to all loopback network interfaces found on the system. If there are more than one network interface, it could be causing a conflict which results in the Connector Errors. Removing any loopback network interfaces such as Wireshark & Npcap should resolve the issue.
Related Question