login about faq

I’ve built an FTP application using your toolkit and it tests fine on from various FTP servers and to various FTP server. I encountered a problem today when using TLS security. The connection works fine but when trying to upload files I receive the error "timeout waiting for connect to complete" and "failed to setup passive data socket". I’ve also set the PassiveUseHostAddr property = true with the same result.

asked Oct 17 '12 at 09:29

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


The FTP protocol is such that data transfers (including directory listings) happen over a separate data connection. Each transfer happens on it's own connection. The establishment of the data connection is often blocked by a firewall, which could be on the client-side, the server-side, or both. Usually, the simplest fix is to switch to non-passive mode (also called Active or Port mode). Do this by setting the ftp.Passive property = false (0).

See this Chilkat blog post for Active vs. Passive Mode Explained.

If that doesn't solve it, there are potentially many other settings that can play a role in FTP data connection establishment. The best guide for beginning to understand the settings is located here:

Determining FTP Data Connection Settings

link

answered Oct 17 '12 at 09:35

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

One follow-up question. The upload works fine when not using TLS security. I only get this error with TLS enabled. Will your suggested fix still be applicable since it works in passive mode without security?

link

answered Oct 18 '12 at 18:48

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×90
×23
×11
×6

Asked: Oct 17 '12 at 09:29

Seen: 3,797 times

Last updated: Oct 18 '12 at 18:55

powered by OSQA