Delphi Indy Socket Error 10060
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might asynchronous socket error 10060 delphi have Meta Discuss the workings and policies of this site
Socket Error 10060 Connection Timed Out Delphi
About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting delphi indy socket example ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 socket error 10060 windows live mail million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Delphi XE Indy TIDSMTP and gmail : Socket Error 10060 up vote 1 down vote favorite I'm having this 'Socket Error 10060 - Connection timed out' when trying to send emails using TIDSMTP, on a Delphi XE application.
Socket Error 10060 Ftp
The same code works on a Delphi 2007 application on the same machine. No firewalls or anti-virus software installed. Same DLLs used on both applications (libeay32.dll / ssleay32.dll). Here is my code : idsmtp1.host = 'xxxx'; idsmtp1.port = 465; idsmtp1.username = 'x'; idsmtp1.password = 'x'; with ssl1 do begin SSLOptions.Method := sslvTLSv1; SSLOptions.VerifyMode := []; SSLOptions.VerifyDepth := 0; Destination := 'smtp.gmail.com:465'; host := 'smtp.gmail.com'; //OnStatusInfo := ssl1statusinfo; end; idsmtp1.iohandler := ssl1; idsmtp1.usetls := utUseImplicitTLS; idsmtp1.UseEhlo := true; idsmtp1.connect; // here the exception is throw delphi gmail indy share|improve this question asked Oct 5 '15 at 17:40 delphirules 1,17031537 Do not set ssl1.Destination and ssl1.Host manually. Connect() assigns them for you. Aside from that, try setting idsmtp1.Port after setting idsmtp1.UseTLS. Setting UseTLS may change the Port, so you want to make sure your chosen port is actually used. If that does not work, try using utUseExplicitTLS on port 587 instead. –Remy Lebeau Oct 5 '15 at 18:58 Removed 'ssl1.des
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the socket error 10060 error number 0x800ccc0e workings and policies of this site About Us Learn more about Stack socket error 10060 connection timed out windows 7 Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Socket Error 10060 Msdn
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join http://stackoverflow.com/questions/32954624/delphi-xe-indy-tidsmtp-and-gmail-socket-error-10060 them; it only takes a minute: Sign up Indy10 HTTPS - socket error 10060 - connection timeout up vote 0 down vote favorite I'm getting "Socket Error #10060, Connection timed out" when trying to access a https link. Here is how you can reproduce it with INDY 10.6.2.0 and OpenSSL 1.0.2d DLLs (also happens with older Indy 10 version and http://stackoverflow.com/questions/33091101/indy10-https-socket-error-10060-connection-timeout dlls): create a project and add a TButton, TIdHTTP and TMemo objects to the form add to button onclick this code: IdHTTP1.Request.UserAgent:='Indy'; IdHTTP1.HandleRedirects:=true; Memo1.text:=IdHTTP1.Get('https://www.itv.com');` now compile and run it, it will download correctly the file. BUT if you are using a service like www.smartydns.com which redirects DNS request to their server, INDY sample above will not work and fail with "Socket Error #10060, Connection timed out" message. Have tried it with WGET too (https://eternallybored.org/misc/wget/) and in version 1.13 its initializing the SSL handshake and freezes, but works without problems with version 1.15. So the question is, what IdHTTP settings do I have to use to make it work, or is it a bug in Indy10 ? sockets delphi ssl https indy10 share|improve this question edited Oct 12 '15 at 22:24 Remy Lebeau 231k13140268 asked Oct 12 '15 at 22:17 MDenis 313 Use a packet sniffer to analyze the differences in DNS requests and SSL handshaking between WGET 1.13 and WGET 1.15. That should get you a better clue as to what you may
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! http://www.tek-tips.com/viewthread.cfm?qid=1463408 Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! http://www.delphigroups.info/2/1d/184822.html Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis socket error posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Embarcadero: Delphi Forum at Tek-Tips HomeForumsProgrammersDevelopment ToolsEmbarcadero: Delphi socket error 10060 Forum Cannot send email (Indy) - Getting Socket Error # 10060 thread102-1463408 Forum Search FAQs Links MVPs Cannot send email (Indy) - Getting Socket Error # 10060 Cannot send email (Indy) - Getting Socket Error # 10060 BebopSong (Programmer) (OP) 3 Apr 08 15:40 Hi, I am trying to send an email using the indy components and I seem to be getting the error 'Socket Error # 10060 Connection timed out'. I am just trying to send a test email to myself. and I am using smtp.googlemail.co.uk as the host name with my username and password. I thought the firewall might be getting in the way so i tried disabling it and still the same thing happens. Any ideas?CODEprocedure TfrmMaintenance.btnTestClick(Sender: TObject);var Prob: boolean;beginif chkInternet.Checked then exit;prob := false;if tblSecurity.state in [dsEdit,dsInsert] then tblSecurity.post;tryEmailMess.ClearBody;EmailMess.Body.Add('Test email');EmailMess.Subject := 'Email Test';EmailMess.Recipients.EMailAddresses := tblSecurity.FieldByName('SenderEmail').AsString;if tblSecurity.FieldByName('AuthServer').AsBoolean thenEmailSMTP.AuthenticationType := atLoginelseEmailSMTP.AuthenticationType := atNone;EmailMess.From.Address := tblSecurity.FieldByName('SenderEmail').AsString;EmailMess.Sender.Address := tblSecurity.FieldByName('SenderEmail').AsString;EmailSMTP.host := tblSecurity.FieldByName('HostServer').AsString;EmailSMTP.UserName := tblSecurity.FieldByName('UserName').AsString;EmailSMTP.Password := tblSecurity.FieldByName('UserPassword').AsString;if EmailSMTP.Connected thenEmailSMTP.Disconnect;EmailSMTP
would have thought it was a proxy server, but the client machine doesn't show evidence of a proxy server in use. Thanks, James Stephane Grobet Delphi Developer Sun, 03 Jul 2005 15:56:05 GMT Re:Indy 10060 Connection timeout on http post This is a socket error, not an indy error. Possible causes are: incorrect IP address used in the URL, incorrect DNS entry or, most probably, a connection problem with the server. Alternatively, you've tried to connect to a server that is protected by a dynamic firewall and you've made it to the blacklist. Good luck, Stephane Quote> Anybody care to speculate what might be causing this? I would have > thought it was a proxy server, but the client machine doesn't show > evidence of a proxy server in use. JK Smit Delphi Developer Sun, 03 Jul 2005 17:15:49 GMT Re:Indy 10060 Connection timeout on http post Thanks for the reply. Quote> This is a socket error, not an indy error. Possible causes are: > incorrect IP address used in the URL, I checked this. It's ok. Quote> incorrect DNS entry or, most > probably, a connection problem with the server. Suspected this, but a browser can get to the same address. Quote> Alternatively, you've tried to connect to a server that is protected by > a dynamic firewall and you've made it to the blacklist. I would think that the same addy used in a browser would give me the same error. James Other Threads 1. Winsock Timeout (10060) 2. IdHTTP Timeout # 10060 on Get ( v 9.0.2-B ) 3. Please help - Socket Error # 10060 Connection timed out 4. Socket Error # 10060 Connection timed out 5. Indy FTP Error 10060 6. http connection timeout - request 7. How to retry Indy http.get after timeout? 8. Indy now has HTTP and other timeouts 9. Indy at timeouts (HTTP) 10. Multiple posts over one http connection