Delphi Ftp Socket Error 10060
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Asynchronous Socket Error 10060 Delphi
Learn more about Stack Overflow the company Business Learn more about hiring developers or socket error 10060 connection timed out delphi posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow socket error 11004 delphi ftp Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Delphi FTP upload Access violation up vote 0 down
Socket Error 10060 Windows Live Mail
vote favorite I'm trying to upload a file .txt in my web space, but then the problems start, the code I tried is this: uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdFTP, StdCtrls; procedure TForm1.Button1Click(Sender: TObject); var FTP:tidftp; begin FTP.Host:='website.altervista.org'; FTP.Username:='website'; FTP.Password:='password'; FTP.Port:=25; FTP.Connect; FTP.Put('C:\Users\user\Desktop\text.txt'); FTP.Quit; end; I'm not getting any error, but when I start the program and
Socket Error 10060 Error Number 0x800ccc0e
I click on the button, I get an error: and immediately after another: and the button disappears. Why? Thanks! windows delphi ftp indy share|improve this question asked Jun 20 '12 at 19:16 Giacomo King Patermo 3461715 Maybe want to read some documentation on the delphi language. –Warren P Jun 21 '12 at 1:49 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted You have to instantiate the TIdFTP object for your local variable FTP before you access it. So try to use this: procedure TForm1.Button1Click(Sender: TObject); var FTP: TIdFTP; begin FTP := TIdFTP.Create(nil); try FTP.Host := 'serioussamhd.altervista.org'; FTP.Username := 'serioussamhd'; FTP.Password := 'password'; FTP.Port := 21; FTP.Connect; FTP.Put('C:\Users\user\Desktop\text.txt'); FTP.Quit; finally FTP.Free; end; end; share|improve this answer edited Jun 22 '12 at 20:42 answered Jun 20 '12 at 19:20 TLama 53.5k14101168 Thanks, access violation error is gone, but now there is another error: Socket Error # 10060 Connection timed out. –Giacomo King Patermo Jun 20 '12 at 19:25 3 Just a wild guess, try to use port 21 instead of 25. –TLama Jun 20 '12 at 19:31 1 Thanks, work fine! –Giacomo King Patermo Jun 20 '12 at 19:43 ad
It happens whe using ChageDir() method. Joe. Doychin Bondzhe Delphi Developer Thu, 05 Jun 2003 18:48:59 GMT Re:Socket Error #10060 with idFtp The information you have provided in your post is not enought. Try to connect socket error 10060 connection timed out windows 7 to this server with Indy Ftp demo and post here the log. Doychin Quote"Joe"
Socket Error 10060 Msdn
wrote in message news:3a3bab4c_2@dnews... > Working with the component gives the error. I've seen it before on this list > but no solution. socket error 10060 gmail It happens whe using ChageDir() method. > Joe. Joe Delphi Developer Thu, 05 Jun 2003 21:20:52 GMT Re:Socket Error #10060 with idFtp The problem is when the demo tries: Self.ChageDir('/'); And here is the Log: Connected. Recv: 220-Jgaa's Fan http://stackoverflow.com/questions/11126607/delphi-ftp-upload-access-violation Club FTP service
the presence of firewall or anti-virus software on the local computer or network connection. Either can block the ports needed to make a successful FTP connection to the remote server. For a regular FTP session, either disable the http://help.globalscape.com/help/cuteftp8/Socket_errors_10060_10061_10064_10065.htm firewall or anti-virus software or configure them to allow CuteFTP to establish an FTP session over ports 20 and 21. Consult the documentation or help file for your specific firewall or antivirus software product for instructions. Usually the manufacturer of the device or software will also have specific instructions available on their Web site. If you continue to receive the same error after insuring ports 20 and 21 are open, contact the administrator of the socket error site you are trying to connect to. For more error code information, refer to Knowledge Base article 10140 at http://kb.globalscape.com. WSAETIMEDOUT (10060) 10060 is a connection-timeout error that usually appears when the client does not receive a response from the server for a specific command. This error often occurs when you try to connect in PASV mode to a server that prefers PORT for data connections. If you see an error log similar to the one socket error 10060 below, in the Site Properties of the problem site, click the Type tab, then change the Data Connection Type to Use PORT. COMMAND:> PASV 227 Entering Passive Mode (xxx,xx,xxx,xx,x,xxx). COMMAND:> LIST STATUS:> Connecting ftp data socket xxx.xx.xxx.xx:xxxx... ERROR:> Can't connect to remote server. Socket error = #10060. ERROR:> Failed to establish data socket. If you still receive a 10060 error, the server may be trying to send a listing for a very large directory (with many thousands of files) causing the client to time-out while waiting. Try increasing the time-out value in the Global Options dialog box (Tools > Global Options > Transfer > Reconnect and resume in [ n ] seconds if nothing received ) to a higher value, such as 45 or 60 seconds. The connection fails due to an error or timeout. Verify that the destination IP address is correct. Increase the connection timeout threshold under Global Settings > Connection. Switch to the opposite data connection type (PASV or PORT) under Site Settings > Type tab. Verify that the problem is not local by trying to connect to an alternate server. If a server name was used, verify it resolves to the correct address. If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address. Try pinging the address. (See Troubleshooting Tips fo