Are you debugging your ftp client against a known good ftp server, or are you writing both server and client. If you are writing both, please get it working against the MIT or Heimdal server before trying to get it working against your own server.