Specify local host port selection mode
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
.
Usage | TCPIP, UDP |
Read only | While open |
Data type | Character vector |
| Use any free local port. |
| Use the specified local port value. |