title: FTP client in Java doesn´t work properly when sending commands
body: <p>I am making a simple FTP client in Java using standard Java sockets. I have succeeded to connect to the server. Then I can send FTP commands like: </p>
  
  <pre><code>USER myUserName
  PASS myPassword
  </code></pre>
  
  <p>and the output says that I am logged in to the server (I allways send the \r\n string with each command that I send to the server). When I send the command "ls" i get this response: <code>425 No data connection</code></p>
  
  <p>When I log in to the server from the standard FTP client from the MS Windows terminal I can use the "ls" command and get a list of all files and folders, but it doesn´t work in my Java application. </p>
  
  <p>The FTP command "HELP" also gives different output in my client and in the standard FTP client in MS Windows. </p>
  
  <p>What am I doing wrong?</p>