| View previous topic :: View next topic |
| Author |
Message |
Matej Guest
|
Posted: Tue Oct 28, 2003 10:09 am Post subject: TIdTCPServer and client IP address |
|
|
I'm using Indy components TCPServer and TCPClient and I'm wondering how go
get client address when it connects to server?
|
|
| Back to top |
|
 |
Arthuro Guest
|
Posted: Tue Oct 28, 2003 11:59 am Post subject: Re: TIdTCPServer and client IP address |
|
|
"Matej" <killer09 (AT) email (DOT) si> wrote
| Quote: | I'm using Indy components TCPServer and TCPClient and I'm wondering how go
get client address when it connects to server?
|
bindings.peerip iirc but you better check the help/faq file that you can
download from the Indy site.
There's some articles on the Indy site as well, one or two of them mention
it too..
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Oct 28, 2003 5:52 pm Post subject: Re: TIdTCPServer and client IP address |
|
|
"Matej" <killer09 (AT) email (DOT) si> wrote
| Quote: | I'm wondering how go get client address when it connects to server?
|
procedure TForm1.IdTCPServer1Connect(ASender: TIdPeerThread);
var
IP: String;
begin
IP := ASender.Connection.Socket.Binding.PeerIP;
// use IP as needed
end;
|
|
| Back to top |
|
 |
|