Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indy Components, check connected IP address/number 1

Status
Not open for further replies.

Nordlund

Programmer
Jul 17, 2001
458
SE
Hi all.
When using Indy, TidTCPServer. The event
Code:
TCPServerExecute(AThread: TIdPeerThread);
is executed whenever a client is connecting to the application.

How do I extract the connected client ip number from the AThread (TIdPeerThread) variable.




KungTure-RX.jpg

//Nordlund
 
that would be :

Code:
AThread.Connection.Socket.Binding.PeerIP

cheers,
Daddy

--------------------------------------
What You See Is What You Get
 
How the heck could I have missed that...
Well, this was indeed a helpful post...

Thanks.

KungTure-RX.jpg

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top