Indy 的 pasv 格式 |
答題得分者是:shieh2700
|
P.D.
版主 發表:603 回覆:4038 積分:3874 註冊:2006-10-31 發送簡訊給我 |
|
shieh2700
高階會員 發表:0 回覆:127 積分:100 註冊:2002-06-13 發送簡訊給我 |
是否考慮升級成 Indy9 或 Indy10? http://www.indyproject.org/KB/indynat.htm For Indy 10 TIdFTP A FTP client using SSL should use PASV transfers (Passive := True) instead of PORT transfers (Passive = False) because a NAT can not translate the IP address given in a PORT command on the control connection. If you must use PORT transfers, you should do the following: 1. Configure your NAT to forward a range ports to your computer behind the NAT.
2. Specify that port range with the DataPortMin and DataPortMin properties.
3. Set the ExternalIP property to the NAT's external Internet IP address.
You may also wish to consider clearing encryption from the control channel by setting the UseCCC property to True as a NAT might be able to intercept the IP address specified in the PORT command. However, that does not work on some NAT's, you may not want to send unencrypted FTP commands, and some FTP servers do not support the CCC command. If you are making a FTP client that will be deployed widely, you should make configuration options for port ranges to use with data channels, permitting the user to enter an external Internet IP address for their NAT's, and permitting the user to clear the command connection with the CCC command.
|
P.D.
版主 發表:603 回覆:4038 積分:3874 註冊:2006-10-31 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |