lftp 4.2.3 In my rc file I have specified:
*set ftp:passive-mode yes;* debug; set cache:enable no; #set ftp:prefer-epsv no; set ftp:sync-mode off; set mirror:set-permissions no; set mirror:use-pget-n 4; set mirror:no-empty-dirs yes; #set net:connection-limit 20; set net:max-retries 60; set net:timeout 14m; #set net:reconnect-interval-base 10; #set net:reconnect-interval-multiplier 1.2; #set net:reconnect-interval-max 30; #set net:persist-retries 60; set pget:save-status 3s; set pget:default-n 4; set xfer:disk-full-fatal yes; set xfer:log yes; set color:use-color yes; set cmd:move-background no; set cmd:save-cwd-history no; set cmd:save-rl-history no; But in lftp output: ---> USER user <--- 200 OK, UTF-8 enabled <--- 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique; <--- 331 User user OK. Password required ---> PASS ---- CWD path to be sent is `/BD/folder1/BDMV/STREAM' ---> CWD /BD/folder1/BDMV/STREAM <--- 230 OK. Current directory is / <--- 250 OK. Current directory is /BD/folder1/BDMV/STREAM ---> TYPE I ---> *PORT 192,168,1,2,133,128* ---> RETR 00011.m2ts <--- 200 TYPE is now 8-bit binary <--- *500 I won't open a connection to 192.168.1.2 (only to xx.xxx.xx.xxx)* ---- *Connecting passive mode* ---> ABOR ---- Closing aborted data socket ---- Closing control socket ---- Connecting to kemservi port 21 ---> FEAT Why lftp doesn't activate at first the passive mode and it waits the 500 error?