Board index » cppbuilder » passive mode
Jonny
![]() CBuilder Developer |
Jonny
![]() CBuilder Developer |
passive mode2005-09-28 04:01:07 PM cppbuilder96 Hi, I'am using indy9 ftp server. I want to use passive mode. Does anyone know what the eventhandler for PASV would look like ? Kind regards Jonny |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-09-29 12:46:36 AM
Re:passive mode
"Jonny" < XXXX@XXXXX.COM >wrote in message
QuoteI'am using indy9 ftp server. client, instead of using the default values that TIdFTPServer automatically calculates, then you can use the OnPASV event for that, ie: procedure TForm1.IdFTPServer1Pasv(ASender: TIdFTPServerThread; var VIP : String; var VPort : Word); begin VIP := 'Whatever IP address the client should connect to'; VPort := WhateverPortNumberTheClientShouldConnectTo; end; About the only time you would ever want to customize the IP/port manually is if your server machine is running being a router with port forwarding enabled, since the client will connect to the router directly instead of the server and thus needs to know the router's IP/port instead of the server's. Gambit |
Jonny
![]() CBuilder Developer |
2005-09-30 08:43:43 PM
Re:passive mode
Thank's a lot
Jonny "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >skrev i meddelandet Quote
{smallsort} |