Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mo 10.02.03 19:43 
Wie kann ich bei der TIdTCPServer-Kompo die IP des gerade verbundenen Clients auslesen? Ein Beispiel:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.TCPSExecute(AThread: TIdPeerThread);
begin
   with AThread.Connection do
   begin
      ShowMessage('Client IP:' + {???});
   end;
end;

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
DataCool
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 112



BeitragVerfasst: Mo 10.02.03 21:29 
Hi,

versuch mal das :wink:

AThread.Connection.Socket.Binding.PeerIP

_________________
DataCool
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mo 10.02.03 21:37 
Ach, verdammt. So nah! Naja, dankeschön! :mrgreen:

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...