Configure MATLAB Mobile to Connect to Your Computer

To connect to a MATLAB® session running on your computer, define a connection, as follows:

  1. Start MATLAB Mobile™.

  2. Specify that you want to connect to your computer:

    • If you have not defined any connections, a welcome screen appears. Tap Connect to Your Computer.

    • If you previously connected to the cloud or to a different computer, tap the Menu button or the menu, tap Settings, and tap Add a Computer.

    You see a screen similar to the following:

  3. In the Computer area, type either the DNS name (typically in the form hostname.domainname.ext) or the IP address of your computer. For more information, see Find a Computer's DNS Name or IP Address.

  4. In the Connector Password area, type the password for the connector, as described in Start the Connector.

  5. Optionally, specify the port number and a descriptive name for your computer, where:

    • The default Port, 31415, is available for the connector on most systems. If you know that your system uses this port for another application, specify a different port number. The port number must match the port specified in the connector configuration file on your computer. For more information, see Install the Connector on Your Computer.

    • A descriptive Name allows you to distinguish easily between systems. Specifying a name is useful when you plan to connect to more than one computer running MATLAB , or when you define connections with IP addresses.

  6. Save your settings and start the session by tapping Connect at the top of the screen. If you cannot connect, see Troubleshooting Desktop Connections.

Each time you start the application, it attempts to reestablish the most recent connection. If the application cannot determine the most recent connection, it attempts to connect to the first connection in your settings (either to the cloud or to the first computer listed).

Please keep in mind that MATLAB Mobile and MATLAB Connector™ are intended for use behind a firewall on a private network. If you plan to use MATLAB Mobile over the public Internet, via 3G, or via 4G, it is recommended you use a Virtual Private Network (VPN).

Find a Computer's DNS Name or IP Address

To identify your computer, specify either the DNS (host) name or the IP address. When you turn the connector on, MATLAB returns the most likely address information for your system, in the following form:

>> connector on

DNS name: myname.myhostname.com
IP address: 172.31.232.150

Use this link to test the connector: 
http://myname.myhostname.com:31415/

For some systems, the connector returns incorrect address information. Use system commands to determine the correct IP address for your operating system:

Windows Systems

To find the IP address of your Windows® system:

  1. Open a command window. For example, onWindows 7 systems, select Start > Run and enter cmd.

  2. At the prompt, enter

    ipconfig -all

    Your system returns information like the following, including the IP address.

Mac OS X or Linux Systems

To find the IP address of your Mac OS X or Linux® system, follow these instructions.

  1. Open a terminal window.

  2. At the prompt, enter the command

    ifconfig -a

    Your system returns information like the following, including the IP address.

Was this topic helpful?