Re: Remote IP from Connect with TIdHTTPServer

Giganews Newsgroups
Subject: Re: Remote IP from Connect with TIdHTTPServer
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Fri, 2 Jan 2004

"Craig Williams" <williams.cra…@earthlink.net> wrote in message
news:BE6A6502948CE240williams.cra…@earthlink.net...
> Is there a way to get the Remote IP from the connection request?

    procedure TForm1.IdHTTPServer1CommandGet(AThread: TIdPeerThread;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
    var
        PeerIP: String;
    begin
        PeerIP := AThread.Connection.Socket.Binding.PeerIP;
        //...
    end;

Gambit

Replies

In response to

Remote IP from Connect with TIdHTTPServer posted by Craig Williams on Fri, 2 Jan 2004