ibrahim bulut wrote: > ok > i tried it and i get the 127.0.0.1 address > but this is my proxy address > > i must know the web site adres ie (www.yahoo.com or 212.125.121.471)
I think it isn't possible thru GetPeerAddr(), since client's peer _is_ the proxy in this case, only the proxy knows 'real' website IP. May be a DNSLookup is enough? But returned IP must not necessarily be proxy's external peer address. Arno Garrels > > > ----- Original Message ----- > From: "Arno Garrels" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Friday, January 27, 2006 1:50 PM > Subject: Re: [twsocket] GpHTTPProxy and remote address info > > > ibrahim bulut wrote: >> when i try to use Client.GetPeerAddr i get the exception > > You need to be connected (state=wsconnected), otherwise you get an > exception. > > Arno Garrels > >> >> can you send me delphi code about this >> >> >> ----- Original Message ----- >> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> >> To: "ICS support mailing" <twsocket@elists.org> >> Sent: Friday, January 27, 2006 12:03 PM >> Subject: Re: [twsocket] GpHTTPProxy and remote address info >> >> >> Hello ibrahim, >> >> You can use GetPeerAddr method from TWSocket. >> >> --- >> Rgds, Wilfried [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> http://www.mestdagh.biz >> >> Friday, January 27, 2006, 10:28, ibrahim bulut wrote: >> >>> hi, >>> i am trying to use GpHTTPProxy component >> >>> how can i get the remote address and remote port from GpHTTPProxy on >>> clientdataavailable event and remotedataavailable event >> >> >>> ibrahim Bulut >>> iletişim Online Ltd.Şti. >>> Software and Database Expert >>> Turkish Republic >> >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://www.elists.org/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be >> >> __________ NOD32 1.1382 (20060127) Information __________ >> >> This message was checked by NOD32 antivirus system. >> http://www.eset.com > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > > __________ NOD32 1.1382 (20060127) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be