Error uploading file by ftp

Answered

Hi,
Using in PhpStorm  8.0.2 in Settings->Deployment I add ftp account and tested it : it connected ok.

on "Mapping Tab" next options set:
Local path :
root of my project

Deployment path on server 'remote_server_name.com'
/

Web path on server 'remote_server_name.com'
/

By right menu item Deployment->Upload to 'remote_server_name.com'  I am trying to upload from my local server to remote server
I got error in console :

[24.01.2015 10:31] Upload to zd_on_successfulgogetter.com
[24.01.2015 10:31] Failed to transfer file 'E:\wwwroot\project\project_name\application\controllers\ajax_scheduler.php': cant open output connection for file "ftp://FTP_INTEGER_IPS/application/controllers/ajax_scheduler.php". Reason: "500 I won't open a connection to 172.16.144.19 (only to IP_OF_MY_COMPUTER)".

where E:\wwwroot\project\project_name root of my directory
FTP_INTEGER_IPS - IP I entered in Settings->Deployment.
IP_OF_MY_COMPUTER - ip of my comp.
What is 172.16.144.19 - I did not understand what is it. It did not look like FTP_INTEGER_IPS or IP_OF_MY_COMPUTER.

Using filezilla with the same account as in PhpStorm, I opened this hosting and see 2 directories "/application/controllers" created, but error on file transfer.
How to fix it?

2 comments
Comment actions Permalink

Hi there,

Googling "500 I won't open a connection to" gives plenty of results with the same explanation/suggestion: connect to your FTP server using passive mode.

3
Comment actions Permalink

I have the exactly the same error:

Upload to  failed: failed to transfer file 'C:\PATH\TO\MY-FOLDER\my-file.php': cant open output connection for file "ftp://my-ftp-site.com/my-file.php". Reason: "500 I won't open a connection to MY-LOCAL-IP (only to MY-EXTERNAL-IP)".

I followed comments from Andriy Bazanov and changed settings of the FTP connection to Passive mode and it is fixed now! Thanks

0

Please sign in to leave a comment.