• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

Getting IP with TIdHTTP

Hi, how can I get the IP of the server I connect to with TIdHTTP? I tried to look in the header, but I didnt find it.
0
pede
Asked:
pede
1 Solution
 
JaccoCommented:
Hi pede,

  IdHTTP1.Host := 'www.borland.com';
  IdHTTP1.Connect;
  Memo1.Lines.Add(IdHTTP1.Binding.PeerIP);
  IdHTTP1.Disconnect;

Regards Jacco
0
 
pedeAuthor Commented:
Thank you Jacco :o)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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