Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by Omar Zelaya
Thu, 02 Jun 2005 22:11
TIdMappedPortTCP Question
Author: Omar Zelaya
Date: Thu, 02 Jun 2005 22:11
Date: Thu, 02 Jun 2005 22:11
13 lines
1285 bytes
1285 bytes
Hi, How can i get the ip address of the client thats connects to the TIdMappedPortTCP Component? I want to only allow some client ip address to connect to the TIdMappedPortTCP component, i think this con be done on the OnConnect Event, but i dont know how to get the ip address of the client and then disconnect it if the ip address is not allowed. Thanks in advance Omar
Re: TIdMappedPortTCP Question
Author: Omar Zelaya
Date: Thu, 02 Jun 2005 22:34
Date: Thu, 02 Jun 2005 22:34
20 lines
1464 bytes
1464 bytes
i have found how to do it. Thanks "Omar Zelaya" <ozelaya2010@hotmail.com> wrote in message news:429f8452@newsgroups.borland.com... > Hi, > > How can i get the ip address of the client thats connects to the > TIdMappedPortTCP Component? > > I want to only allow some client ip address to connect to the > TIdMappedPortTCP component, i think this con be done on the OnConnect > Event, but i dont know how to get the ip address of the client and then > disconnect it if the ip address is not allowed. > > Thanks in advance > > Omar >
Re: TIdMappedPortTCP Question
Author: Remy Lebeau (TeamB)
Date: Thu, 02 Jun 2005 23:55
Date: Thu, 02 Jun 2005 23:55
13 lines
1329 bytes
1329 bytes
"Omar Zelaya" <ozelaya2010@hotmail.com> wrote in message news:429f8452@newsgroups.borland.com... > How can i get the ip address of the client thats connects > to the TIdMappedPortTCP Component? The same way you do with any other Indy server - via the AThread->Connection->Socket->Binding->PeerIP property in any event handler that has a TIdPeerThread (Indy 9) or TIdContext (Indy 10) object available.. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads