[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

Green question: How to get the remote IP from the TidTCPConnection got from TidTCPServer.OnConnect?

Hi,

This is a quite easy question I guess, but I haven't been able to figure out. How to get the remote IP from the TidTCPConnection I get in the TidTCPServer.OnConnect event?
Thanks!
0
imnotapro
Asked:
imnotapro
  • 2
1 Solution
 
BlackTigerXCommented:
var
    PeerIP:string;
begin
  PeerIP   :=AThread.Connection.Socket.Binding.PeerIP;
0
 
geobulCommented:
Hi,

Something like:

TidTCPConnection.Socket.Binding.PeerIP;

Regards, Geo
0
 
geobulCommented:
Too late ;-)
0
 
imnotaproAuthor Commented:
Thank you! :D
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now