MATLAB: Do I receive a “Host unreachable: connect” error when I use FOPEN of the TCP/IP object

Instrument Control Toolboxwin98winntwinnt4.0

When creating TCP/IP objects with invalid IP addresses on Windows NT 4.0 and Windows 98 operating systems the following error is produced:
t=tcpip('555.555.555.555');
fopen(t)
??? Error using ==> instrument/fopen
Error using ==> fopen
Host unreachable: connect.
t=tcpip('777.777.777.777');
fopen(t)
??? Error using ==> instrument/fopen
Error using ==> fopen
Host unreachable: connect.

Best Answer

This error is caused by a limitation of the Network layer and the Java Run-Time Environment in the Windows 98 and Windows NT 4.0 operating systems.
Enter a valid IP address from 0 to 255 in the dot-decimal format. For example:
t=tcpip('144.212.100.10');
fopen(t);