%% Connect to TCP/IP Remote Host and Set Connection Timeout Period
% Create a TCP/IP client connection called t and set the ConnectTimeout property to 30 seconds.

t = tcpclient("144.212.130.17",80,"ConnectTimeout",30)

% See the value of ConnectTimeout.

t.ConnectTimeout

% The output reflects the property change.
% Copyright 2020 The MathWorks, Inc.