- On a Linuxserver Ftp.put didnt work, gave error. Tests revealed, that only active mode was bugged, passive mode upload went through.
Can't call method "sockdomain" on an undefined value at /usr/share/perl/5.36/Net/FTP.pm line 913. - Similar error occurs here: https://www.perlmonks.org/?node_id=1106790. Overwriting Net::FTP
LocalAddr => $ftp->sockhost, as described there, removed error, but ftp.put still didnt work. Something with the ip-config 'ifconfig' was wrong, 'ping localhost' showed ipv6. - Tested disabling ipv6 as described in https://bobcares.com/blog/debian-12-disable-ipv6/. This way ipv6 is disabled only for the session, not after 'reboot'. Now ping was ipv4, ifconfig didnt show ipv6 and ftp.put works.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1