425 Unable to build data connection: Connection timed out

This error can happen when trying to transfer a file or list a directory in Active (PORT) mode. The problem is usually solved by switching to Passive mode. Set the Ftp2.Passive property equal to True. Explanation of the problem: In Active mode, the data connection is setup like this: The client sends a PORT command telling the server the port […]

(FTP) WSAEACCES An attempt was made to access a socket in a way forbidden by its access permissions

Question (solution is below) Today one of my customer’s got the following connect error when running my application. This same application works just fine on my system as well as almost 100 others. It had run correctly on her computer until she installed an upgrade. The connect error is: Port: 21 Host: www.***.com sockError: 10013 Connect: failed WSAEACCES An attempt […]

FTP Upload Speed

Question: We’re rather puzzled by what appears to be capped speeds on uploads, despite no cap being set. Testing uploads, we’re seeing about 350 KB/s via the Ck library to our (local network) FTP server. A FileZilla transfer of the same file to the same server can happily hit up to 7MB/s. I realize Ck supports bandwidth throttling, but those […]

FTP Upload Files to Web Server?

Question: We are trying out the FTP2 ActiveX component for ASP. What we need to do is have people be able to upload files to the web server over the Internet. Is this component able to do this – or can it only FTP files that are already on the web server? Answer: This is a common question. The need […]

FTP Delete – What if file doesn’t exist on server?

Question: There is a possibility that the file to be deleted does not actually exist, so can I do a test first so that i only delete if it is present and thus avoid any nasty warning about missing files? Answer: The Chilkat components/libraries never pop up warnings or display error messages — they simply return success/failure status and provide […]

FTP – WSAECONNRESET An existing connection was forcibly closed by the remote host.

One of the most common problems with FTP data transfers (including downloading directory listings) has to do with Passive vs. Active mode. Depending on your client/server/firewall situation, it’s probable that only one of the two modes will work (Active or Passive). Normally, if you choose the mode that doesn’t work, the data connection is blocked and you get a “WSAEWOULDBLOCK” […]

FTP Timeout trying to Connect on Port 990

Question: What is the cause of this error? ChilkatLog: Connect: DllDate: Dec 2 2008 UnlockPrefix: Anything for 30-day trial Username: <username> Component: .NET 2.0 Hostname: <hostname> Port: 990 IdleTimeoutMs: 60000 ConnectTimeout: 60 HeartbeatMs: 0 Timeout waiting to read socket or accept connection timeoutMs: 60000 Failed to read FTP response line.. initialStatus: -1 initialResponse: Failed to connect to FTP server. Here […]

Understanding FTP (a collection of useful links)

The File Transfer Protocol (FTP) and Your Firewall / Network Address Translation (NAT) Router / Load-Balancing Router Wikipedia: File Transfer Protocol Active FTP vs. Passive FTP, a Definitive Explanation The FTP2.DetermineSettings Method Issue when an FTP Server is behind a NAT Router FTP Blockers – TCP/IP Port Filtering and Anti-Virus Deep Inspection Firewalls and Passive FTP (also known as Stateful […]