Software Components Home

FTP existing connection was forcibly closed by the remote host.

Back

Question:
I get the error "An existing connection was forcibly closed by the remote host.". What could it be?

Answer:
This can happen if your login/password is invalid and your program did not check the return status of the Connect method but continued to try uploading or downloading files when not actually logged in.

ChilkatLog:
  PutFile:
    MyIP: 192,168,2,107,4,89
    An existing connection was forcibly closed by the remote host.
    Failed to receive on the TCP socket
    Failed to read FTP response line.
    PortReply:
    Failed to setup data socket.