.. _matlab_connector_error: Matlab Connector Error ====================== If you get an error such as the following when starting your model: .. code-block:: text Error using connector.ensureServiceOn Error starting MATLAB Connector. Please check that port 31515 is available. Error in slmsgviewer Error in oe_clear_build_list (line 31) disp('Clearing previously loaded build list.'); Error in oe_read_build_list (line 77) oe_clear_build_list; Error in oe_make_rtw_hook (line 152) oe_read_build_list(modelName); Error in openecu_make_rtw_hook (line 6) [restored, hModel] = oe_make_rtw_hook(makeRTWHookMethod, ... Error in openmdl (line 12) evalin('base', ['open_system(''' strrep(filename, '''','''''') ''');'] ); Error in open (line 158) feval(openAction,fullpath); Error in uiopen (line 167) open(fn); ... This is an issue with the MATLAB configuration. It can be fixed with the following: 1. Set the `Environment Variables `_ to ``-Djava.net.preferIPv4Stack=true``. 2. Reset the computer to enable the change. More details can be found at the `Mathworks help forums `_.