List Info

Thread: Remote Address




Remote Address
user name
2006-05-29 17:53:54
When I extract the remote address (request.getRemoteAddr())
from my 
JSPWiki application running on any of my local test servers,
it 
accurately reports the client's IP address.  However, when
I deployed 
the same JSPWiki application via an Internet hosting
service, 
request.getRemoteAddr() returns the address of the host
(rather than the 
client).  (It's almost as if there's some redirection
going on before 
the application gets the request.)

Any ideas on what might be going on, and how to fix it,
would be much 
appreciated.


_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
Remote Address
user name
2006-05-29 21:37:55
Quoting Terry Steichen <terrynet-frame.com>:

> When I extract the remote address
(request.getRemoteAddr()) from my
> JSPWiki application running on any of my local test
servers, it
> accurately reports the client's IP address.  However,
when I deployed
> the same JSPWiki application via an Internet hosting
service,
> request.getRemoteAddr() returns the address of the host
(rather than
> the client).  (It's almost as if there's some
redirection going on
> before the application gets the request.)
>
> Any ideas on what might be going on, and how to fix it,
would be much
> appreciated.

Terry,

Are there any proxies involved anywhere in the chain? Server
or client end?

Murray

............................................................
...............
Murray Altheim <murray06altheim.com>            
                 ===  = =
http://www.altheim.com
/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk        
      = =  = =

       In the evening
       The rice leaves in the garden
       Rustle in the autumn wind
       That blows through my reed hut.  -- Minamoto no
Tsunenobu
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
Remote Address
user name
2006-05-30 09:59:28
Murray,

No, to my knowledge there are no proxies involved. 
Obviously, something 
like that seems to be going on; I just wondered if there was
something 
obvious I'm missing.  I'll contact my hosting service and
see what they say.

Thanks,

Terry

Murray Altheim wrote:
> Quoting Terry Steichen <terrynet-frame.com>:
>
>> When I extract the remote address
(request.getRemoteAddr()) from my
>> JSPWiki application running on any of my local test
servers, it
>> accurately reports the client's IP address. 
However, when I deployed
>> the same JSPWiki application via an Internet
hosting service,
>> request.getRemoteAddr() returns the address of the
host (rather than
>> the client).  (It's almost as if there's some
redirection going on
>> before the application gets the request.)
>>
>> Any ideas on what might be going on, and how to fix
it, would be much
>> appreciated.
>
> Terry,
>
> Are there any proxies involved anywhere in the chain?
Server or client 
> end?
>
> Murray
>
>
............................................................
............... 
>
> Murray Altheim <murray06altheim.com>            
                 
> ===  = =
> http://www.altheim.com
/murray/                                     = 
> =  ===
> SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk   
           = 
> =  = =
>
>       In the evening
>       The rice leaves in the garden
>       Rustle in the autumn wind
>       That blows through my reed hut.  -- Minamoto no
Tsunenobu
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-usersecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
Remote Address
user name
2006-05-30 10:10:07
Hey,

If the Provider front-ends his servlet container with
Apache, e.g. using 
mod_proxy_http this may happen.
I tested that scenario at home, and true enough, with
mod_proxy_http, I 
got 127.0.0.1 as remote_addr (same server).
I changed to use Apache2.2's mod_proxy_ajp (I use Tomcat),
and then 
remote_addr returned correct client address.

Just FYI.

:O) Mikkle

Terry Steichen wrote:
> Murray,
>
> No, to my knowledge there are no proxies involved. 
Obviously, 
> something like that seems to be going on; I just
wondered if there was 
> something obvious I'm missing.  I'll contact my
hosting service and 
> see what they say.
>
> Thanks,
>
> Terry
>
> Murray Altheim wrote:
>> Quoting Terry Steichen <terrynet-frame.com>:
>>
>>> When I extract the remote address
(request.getRemoteAddr()) from my
>>> JSPWiki application running on any of my local
test servers, it
>>> accurately reports the client's IP address. 
However, when I deployed
>>> the same JSPWiki application via an Internet
hosting service,
>>> request.getRemoteAddr() returns the address of
the host (rather than
>>> the client).  (It's almost as if there's some
redirection going on
>>> before the application gets the request.)
>>>
>>> Any ideas on what might be going on, and how to
fix it, would be much
>>> appreciated.
>>
>> Terry,
>>
>> Are there any proxies involved anywhere in the
chain? Server or 
>> client end?
>>
>> Murray
>>
>>
............................................................
............... 
>>
>> Murray Altheim <murray06altheim.com>            
                 
>> ===  = =
>> http://www.altheim.com
/murray/                                     = 
>> =  ===
>> SGML Grease Monkey, Banjo Player, Wantanabe Zen
Monk               = 
>> =  = =
>>
>>       In the evening
>>       The rice leaves in the garden
>>       Rustle in the autumn wind
>>       That blows through my reed hut.  -- Minamoto
no Tsunenobu
>> _______________________________________________
>> Jspwiki-users mailing list
>> Jspwiki-usersecyrd.com
>> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>>
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-usersecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
Remote Address
user name
2006-05-30 17:39:10
Hi Mikkle,

You were correct.  I called the hosting service and had them
change it.  
The client's IP address is now being reported correctly.

Thanks much,

Terry


Mikkel Troest wrote:
> Hey,
>
> If the Provider front-ends his servlet container with
Apache, e.g. 
> using mod_proxy_http this may happen.
> I tested that scenario at home, and true enough, with
mod_proxy_http, 
> I got 127.0.0.1 as remote_addr (same server).
> I changed to use Apache2.2's mod_proxy_ajp (I use
Tomcat), and then 
> remote_addr returned correct client address.
>
> Just FYI.
>
> :O) Mikkle
>
> Terry Steichen wrote:
>> Murray,
>>
>> No, to my knowledge there are no proxies involved. 
Obviously, 
>> something like that seems to be going on; I just
wondered if there 
>> was something obvious I'm missing.  I'll contact
my hosting service 
>> and see what they say.
>>
>> Thanks,
>>
>> Terry
>>
>> Murray Altheim wrote:
>>> Quoting Terry Steichen <terrynet-frame.com>:
>>>
>>>> When I extract the remote address
(request.getRemoteAddr()) from my
>>>> JSPWiki application running on any of my
local test servers, it
>>>> accurately reports the client's IP
address.  However, when I deployed
>>>> the same JSPWiki application via an
Internet hosting service,
>>>> request.getRemoteAddr() returns the address
of the host (rather than
>>>> the client).  (It's almost as if there's
some redirection going on
>>>> before the application gets the request.)
>>>>
>>>> Any ideas on what might be going on, and
how to fix it, would be much
>>>> appreciated.
>>>
>>> Terry,
>>>
>>> Are there any proxies involved anywhere in the
chain? Server or 
>>> client end?
>>>
>>> Murray
>>>
>>>
............................................................
............... 
>>>
>>> Murray Altheim <murray06altheim.com>                              
>>> ===  = =
>>> http://www.altheim.com
/murray/                                     = 
>>> =  ===
>>> SGML Grease Monkey, Banjo Player, Wantanabe Zen
Monk               = 
>>> =  = =
>>>
>>>       In the evening
>>>       The rice leaves in the garden
>>>       Rustle in the autumn wind
>>>       That blows through my reed hut.  --
Minamoto no Tsunenobu
>>> _______________________________________________
>>> Jspwiki-users mailing list
>>> Jspwiki-usersecyrd.com
>>> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>>>
>> _______________________________________________
>> Jspwiki-users mailing list
>> Jspwiki-usersecyrd.com
>> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>>
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-usersecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )