begin if Form1.tcpClient1.LocalHostAddr<>'127.0.0.1' then ShowMessage('Соединение есть...') else ShowMessage('Соединения нет...'); end;