Re: Remote IP from Connect with TIdHTTPServer

Giganews Newsgroups
Subject: Re: Remote IP from Connect with TIdHTTPServer
Posted by:  Craig Williams (williams.cra…@earthlink.net)
Date: Fri, 2 Jan 2004

Thanks.  That's what I'm using.  I was hoping to cut them off before that.
Is there a way to get it from the thread ID in Connect() or
CreatePOSTStream()?

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:90B2445A968CE240gambit47.no.spam@no.spam.yahoo.com...
>
> "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

Re: Remote IP from Connect with TIdHTTPServer posted by Remy Lebeau (TeamB) on Fri, 2 Jan 2004