[Seaside] Re: self requestContext request remoteAddress always 127.0.0.1

Sabine Knöfel sabine.knoefel at gmail.com
Thu Apr 11 15:43:06 UTC 2013


Hi Norbert,
I found it in the "x-forwarded-for" entry header dict.
Thank you!
Sabine

On Thu, Apr 11, 2013 at 5:36 PM, Norbert Hartl [via Smalltalk]
<ml-node+s1294792n4680880h75 at n4.nabble.com> wrote:
> Sabine,
>
> if you have a normal setup that would mean you use a front-end web server
> that accepts requests and forward them to the smalltalk image. In this case
> the connection would go from 127.0.0.1 to 127.0.0.1 so the information you
> are requesting is valid. In this case it is also common that the front-end
> server writes the originating IP address in a http header. Have a look at
>
> http://en.wikipedia.org/wiki/X-Forwarded-For
>
> Then I would advize to have a look at the headers of the request in
>
> self requestContext request headers
>
> to find any header containing the information you are looking for in case it
> is not the one above.
>
> Norbert
>
> Am 11.04.2013 um 17:21 schrieb Milan Mimica <[hidden email]>:
>
> If there is a Http proxy running on your server you will get its ip address.
>
>
> On Thursday, 11 April 2013, Sabine Knöfel <[hidden email]> wrote:
>> Hi,
>>
>> I want to get the ip adress of the user with:
>>
>> self requestContext request remoteAddress
>>
>> But this returns always 127.0.0.1, also on the remote system.
>>
>> E.g. http://ec2-176-34-68-88.eu-west-1.compute.amazonaws.com/
>> in the first line of the page, I did
>>
>> html text: self requestContext request remoteAddress.
>>
>> I would expect the ip adress of my provider
>>
>> Did I miss somethng?
>>
>> Sabine
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/self-requestContext-request-remoteAddress-always-127-0-0-1-tp4680862.html
>> Sent from the Seaside General mailing list archive at Nabble.com.
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
> --
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/self-requestContext-request-remoteAddress-always-127-0-0-1-tp4680862p4680880.html
> To unsubscribe from self requestContext request remoteAddress always
> 127.0.0.1, click here.
> NAML




--
View this message in context: http://forum.world.st/self-requestContext-request-remoteAddress-always-127-0-0-1-tp4680862p4680884.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130411/3667d996/attachment.htm


More information about the seaside mailing list