Does not know if pureftp or something like that is installed on homestead. Maybe try it with SFTP.
Jul 10, 2015
6
Level 1
FTP on Homestead
Hey guys,
im trying to use FTP von my homestead environment, but I get an error while trying to upload a file:
[ErrorException]
ftp_fput(): I won't open a connection to 10.0.2.15 (only to <my-ip>)
Do i need to forward some ports or something? Hope you can help me!
Cheers
Level 20
@ebess have you tried calling ftp_pasv()?:
$conn = ftp_connect($serverConnDetails);
$loginResult = ftp_login($conn, $username, $passwd);
ftp_pasv($conn, true);
[ ... ]
Looks like it might be a passive vs active issue.
Cheers..
Ian
2 likes
Please or to participate in this conversation.