title: Not able to transfer data over FTP server using FTPSClient - Connection refused
body: <p>I am trying to connect to FTP server using <code>FTPSClient</code>, and while authentication works fine, when I try to send data I get <em>connection refused</em> error.</p>
  <pre><code>package com.main;
  import java.io.FileInputStream;
  import java.io.FileOutputStream;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.OutputStream;
  import java.io.PrintWriter;
  import java.security.NoSuchAlgorithmException;
  
  import org.apache.commons.net.PrintCommandListener;
  import org.apache.commons.net.ftp.FTP;
  import org.apache.commons.net.ftp.FTPConnectionClosedException;
  import org.apache.commons.net.ftp.FTPReply;
  import org.apache.commons.net.ftp.FTPSClient;
  
  public final class FTPSExample
  {
      public static final void main(String[] args) throws NoSuchAlgorithmException
      {
          int base = 0;
          boolean storeFile = true, binaryTransfer = true, error = false;
          String server, username, password, remote, local;
          String protocol = &quot;SSL&quot;;    // SSL/TLS
          FTPSClient ftps;
          
          for (base = 0; base &lt; args.length; base++)
          {
              if (args[base].startsWith(&quot;-s&quot;))
                  storeFile = true;
              else if (args[base].startsWith(&quot;-b&quot;))
                  binaryTransfer = true;
              else
                  break;
          }
  
          server = &quot;hostname&quot;;
          username = &quot;username&quot;;
          password = &quot;pass&quot;;
          remote = &quot;/&quot;;
          local = &quot;filepath&quot;;
  
          ftps = new FTPSClient(protocol);
         
          ftps.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
  
          try
          {
              int reply;
  
              ftps.connect(server);
              System.out.println(&quot;Connected to &quot; + server + &quot;.&quot;);
  
              // After connection attempt, you should check the reply code to verify
              // success.
              reply = ftps.getReplyCode();
  
              if (!FTPReply.isPositiveCompletion(reply))
              {
                  ftps.disconnect();
                  System.err.println(&quot;FTP server refused connection.&quot;);
                  System.exit(1);
              }
          }
          catch (IOException e)
          {
              if (ftps.isConnected())
              {
                  try
                  {
                      ftps.disconnect();
                  }
                  catch (IOException f)
                  {
                      // do nothing
                  }
              }
              System.err.println(&quot;Could not connect to server.&quot;);
              e.printStackTrace();
              System.exit(1);
          }
  
  __main:
          try
          {
              ftps.setBufferSize(1000);
  
              if (!ftps.login(username, password))
              {
                  ftps.logout();
                  error = true;
                  break __main;
              }
  
              
              System.out.println(&quot;Remote system is &quot; + ftps.getSystemName());
  
              if (binaryTransfer) ftps.setFileType(FTP.BINARY_FILE_TYPE);
  
              ftps.enterLocalPassiveMode();
  
              if (storeFile)
              {
                  InputStream input;
  
                  input = new FileInputStream(local);
  
                  ftps.storeFile(remote, input);
  
                  input.close();
              }
              else
              {
                  OutputStream output;
  
                  output = new FileOutputStream(local);
  
                  ftps.retrieveFile(remote, output);
  
                  output.close();
              }
  
              ftps.logout();
          }
          catch (FTPConnectionClosedException e)
          {
              error = true;
              System.err.println(&quot;Server closed connection.&quot;);
              e.printStackTrace();
          }
          catch (IOException e)
          {
              error = true;
              e.printStackTrace();
          }
          finally
          {
              if (ftps.isConnected())
              {
                  try
                  {
                      ftps.disconnect();
                  }
                  catch (IOException f)
                  {
                      // do nothing
                  }
              }
          }
  
          System.exit(error ? 1 : 0);
      } // end main
  
  }
  </code></pre>
  <p>Also below are the logs generated.</p>
  <pre class="lang-none prettyprint-override"><code>220-FTP Server is ready...
  220-WARNING!
  220-This information system is the property of ABCD
  220-Industries. Access to this resource is limited to
  220-authorized use only. Therefore, any or all use of
  220-this system may be lawfully intercepted, monitored
  220-or audited for reasons including system support,
  220-detecting unauthorized use, verifying adherance to
  220-security controls or investigating security incidents.
  220-By using this system, 1) you accept these terms and
  220-2) acknowledge your individual responsibility to
  220-comply with all applicable information security
  220-policies as a condition of your access. Be assured
  220-ABCDIndustries will continue to conduct its
  220-information technology practices in accordance
  220-with all applicable US and international laws
  220-(including privacy laws). A copy of ABCD
  220-Industries corporate informaton security policy
  220-is located on the ABCD intranet or upon request
  220 from your Human Resource representative.
  AUTH TLS
  234 AUTH command OK. Initializing SSL connection.
  Connected to hostname.
  USER emerald
  331 User name okay, need password.
  PASS online
  230 User logged in, proceed.
  SYST
  215 UNIX Type: L8
  Remote system is UNIX Type: L8
  TYPE I
  200 Type set to I.
  PASV
  227 Entering Passive Mode (xxx,xx,xx,xx,195,80)
  java.net.ConnectException: Connection refused: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:920)
      at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:627)
      at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:653)
      at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:639)
      at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:2030)
      at com.main.FTPSExample.main(FTPSExample.java:126)
      Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
  </code></pre>
  <p>Note : I am able to connect to server from WinSCP on port 21 for no encryption.</p>
  <p>I tried sending data to a server using <code>FTPClient</code> object, where I get true from <code>storeFile</code> method but I could not find file on a server, but same code with <code>FTPClient</code> is working for other server. But when I tried sending data with <code>FTPSClient</code> object it is throwing above error when <code>storeFile</code> method is called.</p>
  <p>Also when I try to upload file on server by drag drop on server, it gets uploaded and then gets deleted automatically, though not sure why this is happening.</p>
  <p>GUI logs.</p>
  <pre class="lang-none prettyprint-override"><code>. 2020-03-31 13:23:21.860 --------------------------------------------------------------------------
  . 2020-03-31 13:23:21.861 WinSCP Version 5.15.9 (Build 10071) (OS 10.0.18362 - Windows 10 Enterprise)
  . 2020-03-31 13:23:21.861 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
  . 2020-03-31 13:23:21.861 Log level: Normal
  . 2020-03-31 13:23:21.861 Local account: GLOBAL\Devang.Patel
  . 2020-03-31 13:23:21.862 Working directory: C:\Program Files (x86)\WinSCP
  . 2020-03-31 13:23:21.862 Process ID: 100180
  . 2020-03-31 13:23:21.862 Command-line: &quot;C:\Program Files (x86)\WinSCP\WinSCP.exe&quot; 
  . 2020-03-31 13:23:21.863 Time zone: Current: GMT+5:30 (India Standard Time), No DST
  . 2020-03-31 13:23:21.863 Login time: Tuesday, March 31, 2020 1:23:21 PM
  . 2020-03-31 13:23:21.863 --------------------------------------------------------------------------
  . 2020-03-31 13:23:21.863 Session name: USERNAME@hostname (Site)
  . 2020-03-31 13:23:21.863 Host name: hostname (Port: 21)
  . 2020-03-31 13:23:21.863 User name: USERNAME (Password: No, Key file: No, Passphrase: No)
  . 2020-03-31 13:23:21.863 Transfer Protocol: FTP
  . 2020-03-31 13:23:21.863 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
  . 2020-03-31 13:23:21.863 Disable Nagle: No
  . 2020-03-31 13:23:21.863 Proxy: None
  . 2020-03-31 13:23:21.863 Send buffer: 262144
  . 2020-03-31 13:23:21.863 UTF: Auto
  . 2020-03-31 13:23:21.863 FTPS: None [Client certificate: No]
  . 2020-03-31 13:23:21.863 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
  . 2020-03-31 13:23:21.863 Local directory: C:\Users\devang.patel\Desktop, Remote directory: /, Update: Yes, Cache: Yes
  . 2020-03-31 13:23:21.864 Cache directory changes: Yes, Permanent: Yes
  . 2020-03-31 13:23:21.864 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
  . 2020-03-31 13:23:21.864 Timezone offset: 0h 0m
  . 2020-03-31 13:23:21.864 --------------------------------------------------------------------------
  . 2020-03-31 13:23:21.935 Connecting to hostname ...
  . 2020-03-31 13:23:22.175 Connected with hostname. Waiting for welcome message...
  &lt; 2020-03-31 13:23:22.481 220-FTP Server is ready...
  &lt; 2020-03-31 13:23:22.481 220-WARNING!
  &lt; 2020-03-31 13:23:22.481 220-This information system is the property of ABCD
  &lt; 2020-03-31 13:23:22.481 220-Industries. Access to this resource is limited to
  &lt; 2020-03-31 13:23:22.481 220-authorized use only. Therefore, any or all use of
  &lt; 2020-03-31 13:23:22.481 220-this system may be lawfully intercepted, monitored
  &lt; 2020-03-31 13:23:22.481 220-or audited for reasons including system support,
  &lt; 2020-03-31 13:23:22.481 220-detecting unauthorized use, verifying adherance to
  &lt; 2020-03-31 13:23:22.481 220-security controls or investigating security incidents.
  &lt; 2020-03-31 13:23:22.481 220-By using this system, 1) you accept these terms and
  &lt; 2020-03-31 13:23:22.482 220-2) acknowledge your individual responsibility to
  &lt; 2020-03-31 13:23:22.482 220-comply with all applicable information security
  &lt; 2020-03-31 13:23:22.482 220-policies as a condition of your access. Be assured
  &lt; 2020-03-31 13:23:22.482 220-ABCD Industries will continue to conduct its
  &lt; 2020-03-31 13:23:22.482 220-information technology practices in accordance
  &lt; 2020-03-31 13:23:22.482 220-with all applicable US and international laws
  &lt; 2020-03-31 13:23:22.482 220-(including privacy laws). A copy of ABCD
  &lt; 2020-03-31 13:23:22.482 220-Industries corporate informaton security policy
  &lt; 2020-03-31 13:23:22.482 220-is located on the ABCD intranet or upon request
  &lt; 2020-03-31 13:23:22.482 220 from your Human Resource representative.
  &gt; 2020-03-31 13:23:22.482 USER USERNAME
  &lt; 2020-03-31 13:23:22.716 331 User name okay, need password.
  &gt; 2020-03-31 13:23:25.742 PASS ******
  &lt; 2020-03-31 13:23:25.989 230 User logged in, proceed.
  &gt; 2020-03-31 13:23:25.989 SYST
  &lt; 2020-03-31 13:23:26.217 215 UNIX Type: L8
  &gt; 2020-03-31 13:23:26.217 FEAT
  &lt; 2020-03-31 13:23:26.453 211-Extensions supported
  &lt; 2020-03-31 13:23:26.453  UTF8
  &lt; 2020-03-31 13:23:26.453  OPTS MODE;MLST;UTF8
  &lt; 2020-03-31 13:23:26.453  CLNT
  &lt; 2020-03-31 13:23:26.453  CSID Name; Version;
  &lt; 2020-03-31 13:23:26.453  HOST domain
  &lt; 2020-03-31 13:23:26.453  SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
  &lt; 2020-03-31 13:23:26.453  AUTH TLS;SSL;TLS-C;TLS-P;
  &lt; 2020-03-31 13:23:26.453  PBSZ
  &lt; 2020-03-31 13:23:26.453  PROT
  &lt; 2020-03-31 13:23:26.453  CCC
  &lt; 2020-03-31 13:23:26.453  SSCN
  &lt; 2020-03-31 13:23:26.453  RMDA directoryname
  &lt; 2020-03-31 13:23:26.453  DSIZ
  &lt; 2020-03-31 13:23:26.453  AVBL
  &lt; 2020-03-31 13:23:26.453  EPRT
  &lt; 2020-03-31 13:23:26.453  EPSV
  &lt; 2020-03-31 13:23:26.453  MODE Z
  &lt; 2020-03-31 13:23:26.453  THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname
  &lt; 2020-03-31 13:23:26.453  REST STREAM
  &lt; 2020-03-31 13:23:26.453  SIZE
  &lt; 2020-03-31 13:23:26.453  MDTM
  &lt; 2020-03-31 13:23:26.454  MDTM YYYYMMDDHHMMSS[+-TZ];filename
  &lt; 2020-03-31 13:23:26.454  MFMT
  &lt; 2020-03-31 13:23:26.454  MFCT
  &lt; 2020-03-31 13:23:26.454  MFF Create;Modify;
  &lt; 2020-03-31 13:23:26.454  XCRC filename;start;end
  &lt; 2020-03-31 13:23:26.454  XMD5 filename;start;end
  &lt; 2020-03-31 13:23:26.454  XSHA1 filename;start;end
  &lt; 2020-03-31 13:23:26.454  XSHA256 filename;start;end
  &lt; 2020-03-31 13:23:26.454  XSHA512 filename;start;end
  &lt; 2020-03-31 13:23:26.454  COMB target;source_list
  &lt; 2020-03-31 13:23:26.454  MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl
  &lt; 2020-03-31 13:23:26.454 211 End (for details use &quot;HELP commmand&quot; where command is the command of interest)
  &gt; 2020-03-31 13:23:26.454 CLNT WinSCP-release-5.15.9
  &lt; 2020-03-31 13:23:26.783 200 Noted.
  &gt; 2020-03-31 13:23:26.783 OPTS UTF8 ON
  &lt; 2020-03-31 13:23:27.195 200 OPTS UTF8 is set to ON.
  . 2020-03-31 13:23:27.223 Connected
  . 2020-03-31 13:23:27.223 --------------------------------------------------------------------------
  . 2020-03-31 13:23:27.223 Using FTP protocol.
  . 2020-03-31 13:23:27.224 Doing startup conversation with host.
  &gt; 2020-03-31 13:23:27.252 PWD
  &lt; 2020-03-31 13:23:27.482 257 &quot;/&quot; is current directory.
  . 2020-03-31 13:23:27.482 Changing directory to &quot;/&quot;.
  &gt; 2020-03-31 13:23:27.483 CWD /
  &lt; 2020-03-31 13:23:27.719 250 Directory changed to /
  . 2020-03-31 13:23:27.719 Getting current directory name.
  &gt; 2020-03-31 13:23:27.720 PWD
  &lt; 2020-03-31 13:23:27.950 257 &quot;/&quot; is current directory.
  . 2020-03-31 13:23:27.989 Retrieving directory listing...
  &gt; 2020-03-31 13:23:27.989 TYPE A
  &lt; 2020-03-31 13:23:28.318 200 Type set to A.
  &gt; 2020-03-31 13:23:28.318 PASV
  &lt; 2020-03-31 13:23:28.625 227 Entering Passive Mode (xxx,xx,xx,xx,195,80)
  &gt; 2020-03-31 13:23:28.625 MLSD
  . 2020-03-31 13:23:28.625 Connecting to xxx.xx.xx.xx:50000 ...
  &lt; 2020-03-31 13:23:28.934 150 Opening BINARY mode data connection for MLSD.
  . 2020-03-31 13:23:29.242 Data connection closed
  . 2020-03-31 13:23:29.242 Type=dir;Modify=20200330141036.281; etst
  &lt; 2020-03-31 13:23:29.242 226 Transfer complete. 42 bytes transferred. 0.04 KB/sec.
  . 2020-03-31 13:23:29.243 Directory listing successful
  . 2020-03-31 13:23:29.243 ..;D;0;1899-12-30T05:30:00.000Z;0;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:23:29.243 etst;D;0;2020-03-30T14:10:36.000Z;3;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:23:29.263 Startup conversation with host finished.
  . 2020-03-31 13:23:59.933 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:23:59.933 REST 0
  &lt; 2020-03-31 13:24:00.434 350 Restarting at 0. Send STORE or RETRIEVE.
  . 2020-03-31 13:24:29.937 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:24:29.937 REST 0
  &lt; 2020-03-31 13:24:30.435 350 Restarting at 0. Send STORE or RETRIEVE.
  . 2020-03-31 13:24:33.701 Copying 1 files/directories to remote directory &quot;/&quot; - total size: 104
  . 2020-03-31 13:24:33.701   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
  . 2020-03-31 13:24:33.701   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
  . 2020-03-31 13:24:33.701   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
  . 2020-03-31 13:24:33.702 File: 'C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt' [2020-03-30T07:53:11.476Z] [104]
  . 2020-03-31 13:24:33.702 Copying &quot;C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt&quot; to remote directory started.
  . 2020-03-31 13:24:33.703 Binary transfer mode selected.
  . 2020-03-31 13:24:33.703 Starting upload of C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt
  &gt; 2020-03-31 13:24:33.703 TYPE I
  &lt; 2020-03-31 13:24:33.963 200 Type set to I.
  &gt; 2020-03-31 13:24:33.963 PASV
  &lt; 2020-03-31 13:24:34.352 227 Entering Passive Mode (xxx,xx,xx,xx,195,81)
  &gt; 2020-03-31 13:24:34.352 STOR testFtpConnectionFile4293902888177791204.txt
  . 2020-03-31 13:24:34.352 Connecting to xxx.xx.xx.xx:50001 ...
  &lt; 2020-03-31 13:24:34.506 150 Opening BINARY mode data connection for testFtpConnectionFile4293902888177791204.txt.
  &lt; 2020-03-31 13:24:34.783 226 Transfer complete. 104 bytes transferred. 6.35 KB/sec.
  &gt; 2020-03-31 13:24:34.783 MFMT 20200330075311 testFtpConnectionFile4293902888177791204.txt
  &lt; 2020-03-31 13:24:35.091 213 Modify=20200330075311; /testFtpConnectionFile4293902888177791204.txt
  . 2020-03-31 13:24:35.091 Upload successful
  . 2020-03-31 13:24:35.091 Transfer done: 'C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt' =&gt; '/testFtpConnectionFile4293902888177791204.txt' [104]
  . 2020-03-31 13:24:35.099 Copying finished: Transferred: 104, Elapsed: 0:00:01, CPS: 0/s
  . 2020-03-31 13:24:35.100 Retrieving directory listing...
  &gt; 2020-03-31 13:24:35.100 TYPE A
  &lt; 2020-03-31 13:24:35.398 200 Type set to A.
  &gt; 2020-03-31 13:24:35.398 PASV
  &lt; 2020-03-31 13:24:35.705 227 Entering Passive Mode (xxx,xx,xx,xx,195,82)
  &gt; 2020-03-31 13:24:35.705 MLSD
  . 2020-03-31 13:24:35.706 Connecting to xxx.xx.xx.xx:50002 ...
  &lt; 2020-03-31 13:24:36.022 150 Opening BINARY mode data connection for MLSD.
  &lt; 2020-03-31 13:24:36.320 226 Transfer complete. 134 bytes transferred. 0.13 KB/sec.
  . 2020-03-31 13:24:36.321 Data connection closed
  . 2020-03-31 13:24:36.321 Type=dir;Modify=20200330141036.281; etst
  . 2020-03-31 13:24:36.321 Type=file;Size=104;Modify=20200330075311.000; testFtpConnectionFile4293902888177791204.txt
  . 2020-03-31 13:24:36.321 Directory listing successful
  . 2020-03-31 13:24:36.322 ..;D;0;1899-12-30T05:30:00.000Z;0;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:24:36.322 etst;D;0;2020-03-30T14:10:36.000Z;3;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:24:36.322 testFtpConnectionFile4293902888177791204.txt;-;104;2020-03-30T07:53:11.000Z;3;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:25:06.935 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:25:06.936 TYPE A
  &lt; 2020-03-31 13:25:07.437 200 Type set to A.
  . 2020-03-31 13:25:36.941 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:25:36.941 TYPE I
  &lt; 2020-03-31 13:25:37.441 200 Type set to I.
  . 2020-03-31 13:26:06.944 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:26:06.944 PWD
  &lt; 2020-03-31 13:26:07.444 257 &quot;/&quot; is current directory.
  . 2020-03-31 13:27:08.946 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:27:08.946 REST 0
  &lt; 2020-03-31 13:27:09.447 350 Restarting at 0. Send STORE or RETRIEVE.
  . 2020-03-31 13:27:29.907 Getting current directory name.
  . 2020-03-31 13:27:29.909 Retrieving directory listing...
  &gt; 2020-03-31 13:27:29.909 TYPE A
  &lt; 2020-03-31 13:27:30.140 200 Type set to A.
  &gt; 2020-03-31 13:27:30.140 PASV
  &lt; 2020-03-31 13:27:30.413 227 Entering Passive Mode (xxx,xx,xx,xx,195,83)
  &gt; 2020-03-31 13:27:30.413 MLSD
  . 2020-03-31 13:27:30.413 Connecting to xxx.xx.xx.xx:50003 ...
  &lt; 2020-03-31 13:27:30.657 150 Opening BINARY mode data connection for MLSD.
  &lt; 2020-03-31 13:27:30.927 226 Transfer complete. 42 bytes transferred. 0.04 KB/sec.
  . 2020-03-31 13:27:30.927 Data connection closed
  . 2020-03-31 13:27:30.928 Type=dir;Modify=20200330141036.281; etst
  . 2020-03-31 13:27:30.928 Directory listing successful
  . 2020-03-31 13:27:30.928 ..;D;0;1899-12-30T05:30:00.000Z;0;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:27:30.928 etst;D;0;2020-03-30T14:10:36.000Z;3;&quot;&quot; [0];&quot;&quot; [0];---------;0
  . 2020-03-31 13:29:00.953 Sending dummy command to keep session alive.
  &gt; 2020-03-31 13:29:00.953 TYPE A
  &lt; 2020-03-31 13:29:01.455 200 Type set to A.
  
  </code></pre>