Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

LocalPortMode

Specify local host port selection mode

Description

LocalPortMode specifies the selection mode for the LocalPort property when you connect a TCPIP or UDP object.

If LocalPortMode is set to auto, the MATLAB® workspace uses any free local port. If LocalPortMode is set to manual, the specified LocalPort value is used when you issue the fopen function. If you explicitly specify a value for LocalPort, LocalPortMode is automatically set to manual.

Characteristics

Usage

TCPIP, UDP

Read only

While open

Data type

Character vector

Values

{auto}

Use any free local port.

manual

Use the specified local port value.

See Also

Functions

fclose, fopen, tcpip, udp

Properties

LocalHost, LocalPort, Status

Was this topic helpful?