• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFTP with proxy

New Here ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

Hi !

I wanna make an ftp connection passing by a proxy but I don't manage to with cfftp tag. This my code :

<cfftp action="open" username="*****" password="*****" server="*****.com" proxyserver="proxerserverIP" passive="yes" port="8080">

And this the error I get in return :

An exception occurred when establishing a FTP connection.
The cause of this exception was that: java.net.ConnectException: Connection timed out: connect.

Can somebody help me please ?

Thanks
TOPICS
Advanced techniques

Views

535

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

Hi,

The default timeout is 30 seconds, but you can override this using the timeout attribute of the <cfftp> tag.. Try specifying some more value as timeout.. That may perhaps work...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

Thanks for your answer Daverms.

I tryed with timeout=1000000 but the same error is returned. Moreover proxyserver seems not to be used because a request is sent directly to the ftp server and not to the proxy. Any other idea ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

Hi Jack,

This error mainly occurs due to the uploads that takes more that 30 seconds.

Try like this by putting the following statement

<cfsetting requestTimeOut = "120">

I believe this will probably work...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

The same error again :'(

Have you ever used cfftp with a proxy ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

Seems strange 😞 ....

Well.. If you can get through in your Command Prompt the following...

ftp> open server_ip

then:

user > username@hostname proxyusername
password > pass
proxypassword > proxypass

Then... You can also passthrough the authentication via CFFTP too...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2007 Jan 30, 2007

Copy link to clipboard

Copied

LATEST
It doesn't work either... I will contact the administrator something may be badly configured.

Thanks for your help 😉

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation