Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idFTP Problem
#4
(11-09-2022, 04:32 PM)OldBob1938 Wrote: on the office system after connection I get the message "entering extended passive mode"

Are you seeing that in a thrown exception? That should not be getting thrown as an exception, since that is not an error condition to begin with. Can you please provide a log showing the actual FTP commands/responses that are being transmitted? You can assign one of Indy's TIdLog... components to the TIdFTP.Intercept property to get that log.

(11-09-2022, 04:32 PM)OldBob1938 Wrote: and I have no idea as to how to proceed.

Ideally, you should not have to do anything. TIdFTP supports "extended passive mode", considering it is the one asking for that mode in the first place (by sending an EPSV command instead of a PASV command).

(11-09-2022, 04:32 PM)OldBob1938 Wrote: The office has 2 data inputs ATT & TMobile.

Are they active at the same time? Are you manually configuring TIdFTP to force it to use one service vs the other? If so, then you may have to use the TIdFTP.OnDataChannelCreate event to manually configure the outbound data connection in a similar way.

(11-09-2022, 04:32 PM)OldBob1938 Wrote: I read that the ftp server expects me to issue an EPSV command and create a data socket and connect it to the IP address of the control connection and port number indicated in the EPSV reply.

That is correct, and TIdFTP should be handling all of that for you.

(11-09-2022, 04:32 PM)OldBob1938 Wrote: (1) I don't understand what I should be doing

Ideally, you should not be doing anything. This is TIdFTP's responsibility to manage for you.

(11-09-2022, 04:32 PM)OldBob1938 Wrote: (2) why is the server responding differently if I use TMobile or ATT?

It should not be, as it doesn't know which system you are using. What makes you think the server is sending different responses? What do the responses actually look like? It should just be sending you a Port number and an (optional) IP/Host to connect to. The rest is on TIdFTP to manage.

If necessary, you might try setting TIdFTP.PassiveUseControlHost=True, which will force TIdFTP to connect its data connection to the same IP address that the control connection is already connected to, regardless of any IP/Host specified in the EPSV response.

Reply


Messages In This Thread
idFTP Problem - by OldBob1938 - 10-31-2022, 07:23 PM
RE: idFTP Problem - by rlebeau - 11-01-2022, 04:04 PM
RE: idFTP Problem - by OldBob1938 - 11-09-2022, 04:32 PM
RE: idFTP Problem - by rlebeau - 11-09-2022, 06:44 PM
RE: idFTP Problem - by OldBob1938 - 11-12-2022, 06:00 PM
RE: idFTP Problem - by rlebeau - 11-14-2022, 09:35 PM
RE: idFTP Problem - by OldBob1938 - 11-19-2022, 09:12 PM
RE: idFTP Problem - by rlebeau - 11-22-2022, 11:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)