[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/26/2003 at 02:01AM PDT, ID: 20626298
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

FTP through SOCKS5

Asked by geobul in Delphi Programming

Tags: ftp, socks5

Hi,

I need to connect to a remote (Internet) FTP server using SOCKS5. I'm using Delphi 5 Ent and Indy 9.

This is what I've got so far (thanks to DragonSlayer):

- I can connect to the FTP server, change directories up and down and disconnect.
- List, Get and Put commands don't work at all giving '10051 Socket error' which means 'Network unreachable' (if I'm not mistaken).

I have one TIdFTP component (in passive mode) on a form with Host, Port, Username, Password properties set in desing-time. The code is:

procedure TForm1.Button5Click(Sender: TObject); // quick connect
var i: integer;
begin
 try
   IdFTP1.Passive := true; // passive mode
   // SOCKS
   IdFTP1.IOHandler := TIdIOHandlerSocket.Create(IdFTP1);
   IdFTP1.Socket.SocksInfo := TIdSocksInfo.Create(IdFTP1.Socket);
   with IdFTP1.Socket.SocksInfo do begin
     Host := edtSHost.Text;
     Port := StrToInt(edtSPort.Text);
     Authentication := saNoAuthentication;
     Username := '';
     Password := '';
     Version := svSocks5;
   end;

   IdFTP1.Connect;

   Label3.Caption := IdFTP1.RetrieveCurrentDir;
   RichEdit1.Lines.Add('->System: '+IdFTP1.SystemDesc);
   RichEdit1.Lines.Add('->Login:');
   for i := 0 to IdFTP1.LoginMsg.Text.Count - 1 do begin
     RichEdit1.Lines.Add(IdFTP1.LoginMsg.Text[i]);
   end;
   RichEdit1.Lines.Add('->Greeting:');
   for i := 0 to IdFTP1.Greeting.Text.Count - 1 do begin
     RichEdit1.Lines.Add(IdFTP1.Greeting.Text[i]);
   end;

   RichEdit2.Lines.Clear;
//    IdFTP1.List(RichEdit2.Lines, '*.*', false); // <----- error !!!
 except
   ShowMessage('Connect failed');
 end;

end;

Thanks,
Geo
 
Keywords: FTP through SOCKS5
 
Loading Advertisement...
 
[+][-]05/26/03 05:41 AM, ID: 8583985

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/26/03 06:23 AM, ID: 8584153

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/26/03 07:04 AM, ID: 8584331

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Delphi Programming
Tags: ftp, socks5
Sign Up Now!
Solution Provided By: binkzz
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05/26/03 08:15 AM, ID: 8584671

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/08/03 09:58 PM, ID: 9315544

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/09/03 10:43 AM, ID: 9322546

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91