MATLAB: Tcpip with login and password

MATLABtcpip

Hello you all,
is it possible to include a login and a password inside the following code:
conn=tcpip('192.168.1.100',21845);
The remote device is always asking for a login and a password but I would like to make a full automation when accessing to that remote device.
Any help will be very appreciated.

Best Answer

I don't know anything about matlab's implementation of tcpip, but authentication would have to be implemented at a higher layer than TCP/IP. See the OSI model, TCP/IP is only responsible for the transport of the data (layer 4). It's the protocol at layer 5,6 or 7 that would be responsible for authentication.
So, in short, if tcpip is correctly implemented, it shouldn't / can't offer any option for login/password. It's whatever protocol on top of tcp that will enable login.
Related Question