Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 28.07.07 10:50 
Hallo,

ich bastle momentan an einem FTP-Clienten rum und kriege immer, wenn ich zu einem Server, der ganz sicher existiert connecten will die Meldung "Socket Error #11004"...
Hab schon gesucht und den passiven Modus aktiviert, aber es funktioniert trotzdem nicht...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure TForm1.Button1Click(Sender: TObject);
begin
  AddMessage('Verbinden mit ' + Edit1.Text + #13#10, clGreen); //Das hier schafft er noch
  if Edit1.Text <> '' then                                     //und das auch, wenn kein Host angegeben wird, wird der
  begin                                                        //else-Teil ausgeführt wie er es soll...
    IdFTP1.Passive := true;
    IdFTP1.Host := 'ftp://' + Edit1.Text;
    IdFTP1.Username := Edit2.Text;
    IdFTP1.Password := MaskEdit1.Text;
    IdFTP1.Port := StrToInt(Edit4.Text);
    IdFTP1.Connect;
  end
  else
    AddMessage('Fehler: Bitte Host-Adresse angeben'#13#10, clRed);
end;
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 28.07.07 11:28 
Der Host hat kein ftp:// davor.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 28.07.07 11:36 
Wenn ich kein ftp davor mache, dann geht gar nix mehr... Dann kommt er komischerweise nichtmal zum "Verbinden mit"
Edit: Läuft doch...
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 28.07.07 11:45 
Habs grad getestet. Ich komm mit dem selben Source (aber ohne ) auf meinen FTP-Server drauf.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 28.07.07 11:51 
Ja, jetzt muss ich nur die Fehler abfangen können, die kommen, wenn der Host nicht existiert, wenn der Username falsch oder das Passwwort falsch ist