BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTCPServer and client IP address

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Matej
Guest





PostPosted: Tue Oct 28, 2003 10:09 am    Post subject: TIdTCPServer and client IP address Reply with quote



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





PostPosted: Tue Oct 28, 2003 11:59 am    Post subject: Re: TIdTCPServer and client IP address Reply with quote




"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





PostPosted: Tue Oct 28, 2003 5:52 pm    Post subject: Re: TIdTCPServer and client IP address Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.