This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Specify local host


LocalHost specifies the local host name or the IP dotted decimal address. An example dotted decimal address is If you have only one address or you do not specify this property, the object uses the default IP address when you connect to the hardware with the fopen function.

You can configure LocalHost only when the object is disconnected from the hardware. You disconnect a connected object with the fclose function. A disconnected object has a Status property value of closed.




Read only

While open

Data type

Character vector


The default value is an empty character vector.

See Also


fclose, fopen, tcpip, udp