Manually creating a remote kernel connection is a useful debugging tool. You should try this if you are having trouble connecting to a remote kernel.
- Start Mathematica on your local machine. On the toolbar, navigate to Evaluation ► Kernel Configuration Options….
- Add a new kernel and configure it. In the dialog, click Add, and a Kernel Configuration dialog appears.
- Enter an appropriate name for your remote kernel, such as RemoteMachine1.
- Under Basic Options, verify that “Launch on” is set to “Local machine”. Additionally, clear the field “Kernel Program.”
- Click the Advanced Options switch. In the text field called “Arguments to MLOpen,” enter:
- Click OK and open a new notebook.
- On the toolbar, navigate to Evaluation ► Notebook’s Kernel and click the name of the kernel that you just created.
- Inside the notebook, evaluate the command:
Instead of printing Mathematica’s version number, a message box appears:
After this message is a name that is called the linkname. Record this linkname so that you can use it later and click OK to close the dialog.
The title bar of the notebook should still say Running… at the top.
- Connect to the remote machine and launch the Wolfram Language kernel there. Inside that kernel, run the command:
Here, “linkname” is the linkname that you recorded earlier, wrapped in quotation marks. For example, if the linkname is:
- The notebook that is open on the local machine now prints out the version of Mathematica that you remotely connected to. This indicates that the local machine is successfully using the remote kernel.