Autor Beitrag
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Sa 26.02.05 16:25 
also ich habe einen clienten der schick an meinen server die meldung, das der clinet online ist. soweit sogut das geht auch problem los aber nur im lokalen netztwerk. wenn ich im clineten die ip durch meine inetadresse erstezte, kommt nix mehr an meinem server an. weiß jemand warum. lokal geht es doch auch. ich hatte 2 rechner im (globalen) netz zum testen also nicht lokal mit der inetadrsse (das geht bei mir nicht weil ich hinter einem router hänge am portforwarding kann es nicht liegen da ich alles über dmz mache)

gruß
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 26.02.05 20:52 
Also das müsste normal mit Sockets funktionieren... :gruebel: Mit DMZ kenn ich mich nich so aus, aber probier doch einfach mal telnet auf deinem PC zu starten und schau dann mal, ob es mit den Einstellungen klappt. ;)

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
jaenschi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

Win XP, Debian
D7
BeitragVerfasst: Sa 26.02.05 20:57 
Hast du bei deinem Router den Port forwarded?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 26.02.05 21:07 
Jawoll.... Hab sogar dafür ein eigenes Programm geschrieben... *angeb'* :lol:

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
jaenschi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

Win XP, Debian
D7
BeitragVerfasst: Sa 26.02.05 21:10 
Muss ich das jetzt verstehen?
User-xy2004 hat doch die Frage gestellt. Er muss doch den Port forwarden!? :gruebel:
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 26.02.05 21:15 
jaenschi hat folgendes geschrieben:
Muss ich das jetzt verstehen?
User-xy2004 hat doch die Frage gestellt. Er muss doch den Port forwarden!? :gruebel:

Hmm.... Ich glaub, er meint, dass ich auch DMZ hätte... Also dass er seinen Port doch forwarden muss...

Ich schau mir das "DMZ" mal bei Wiki an...

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Sa 26.02.05 21:31 
also portforwarding klappt bei mir nicht. das geht irgendwie nicht deshalb lasse ich alles über dmz gehen. den unterschie daran ist, das nicht der ein oder ander port frei wird sonder das alle anfragen von außen an mich weitergeleit werden. und ich weiß das es mit den socket hegt ich habe da schonmal was mit gemacht das funtz ja auch nur im konkreten fall grad nicht
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 26.02.05 22:11 
Nun, dann wäre vielleicht ein bisschen Code nicht schlecht... ;)

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Sa 26.02.05 22:42 
wovon vom server oder dem clienten
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 26.02.05 23:37 
Beides?!?!?!? ;) :lol:

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.02.05 08:26 
hier der server-code

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TMain1.ServerSocket1ClientRead(Sender: TObject;
  Socket: TCustomWinSocket);
begin
  RichEdit1.Lines.Add(Socket.ReceiveText);
end;


und der client

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  TEMPSTR : string;
  I : integer;
begin
  ClientSocket1.Open;
  Label1.Caption := 'sende';
  sleep(2000);
  Application.ProcessMessages;
  Memo1.Lines := GetIps;
  ClientSocket1.Socket.SendText(TimeToStr(TIME)+' '+GetComputerName+': ist Online');

  TEMPSTR := '';
  for I := 0 to Memo1.Lines.Count - 1 do begin
    TEMPSTR := TEMPSTR+Memo1.Lines.Strings[0]+'; ';
    Memo1.Lines.Delete(0);
     end;
  ClientSocket1.Socket.SendText(TimeToStr(TIME)+' '+GetComputerName+': '+TEMPSTR);

  sleep(2000);
  Label1.Caption := '';
  Application.ProcessMessages;
  ClientSocket1.Close;
end;


wie gesagt lokal geht es ja

gruß der user
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 27.02.05 11:12 
Vielleicht reichen für's INet deine Sleep(2000) nicht aus... :gruebel: Ich würd das auch nicht mit Timern und Sleep machen... Warum gibbet denn Ereignisse?? ;)

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 27.02.05 12:48 
du könnste recht gehabt haben es lag am sleep habe den cod jetzt mal geändert

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  TEMPSTR : string;
  I : integer;
begin
  Timer1.Enabled := FALSE;
  ClientSocket1.Open;

  Memo1.Lines := GetIps;

  TEMPSTR := '';
  for I := 0 to Memo1.Lines.Count - 1 do begin
    TEMPSTR := TEMPSTR+Memo1.Lines.Strings[0]+'; ';
    Memo1.Lines.Delete(0);
     end;
  ClientSocket1.Socket.SendText(TimeToStr(TIME)+': '+GetComputerName+' ist Online '+TEMPSTR);

  ClientSocket1.Close;
  Timer1.Enabled := TRUE;
end;


ich glaube jetzt gehts den test hast bestanden.

danke für deine mühe
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 27.02.05 13:01 
User-Xy2004 hat folgendes geschrieben:
danke für deine mühe

Kein Problem... 8)

Was ist das denn??

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.