Good day. I have the following problem: the code that I am trying to connect to the FTP server is described below. I am in the office, Internet access is carried out through UserGate proxy. And something does not work out for me to break through the proxy, the errors fly out:
1. Project IP.exe raised exception class EIdSocketError with message 'Socket Error # 10061 Connection refused.'. 2. Project IP.exe raised exception class EIdSocketError with message 'Socket Error # 10054 Connection reset by peer.'. - если не указываю тип прокси
I work with this component for the first time, so do not judge strictly. Perhaps there is some other component for this purpose that works with Delphi XE2? Please help, comrades :)
IdFtp1.Host := 'xxx.xxx.xxx.xxx'; IdFtp1.Username := 'xxx'; IdFtp1.Password := 'xxx'; IdFtp1.ProxySettings.UserName:= ''; IdFtp1.ProxySettings.Password:= ''; IdFtp1.ProxySettings.ProxyType:= fpcmUserSite; IdFtp1.ProxySettings.Host:= '192.168.2.1'; IdFtp1.ProxySettings.Port:= 5456; IdFTP1.Passive := True; IdFtp1.Connect;