Re: Http server remote DNS name

Giganews Newsgroups
Subject: Re: Http server remote DNS name
Posted by:  Remy Lebeau (Indy Team) (
Date: Tue, 21 Nov 2006

"Rasmus Wätjen" <> wrote in

> The TIdHTTPRequestInfo.RemoteIP supplies the IP address of
> the client connected to the HTTP server. How can I get the DNS
> name for that client?

You have to perform a reverse DNS lookup.

> Is there a built-in way

The WSGetHostByAddr() (Indy 9) or HostByAddress() (Indy 10) method of the
global GStack object.

> should I use the TidDNSResolver?




In response to

Http server remote DNS name posted by Rasmus Wätjen on Tue, 21 Nov 2006