How can I get the client IP address or the client hostname

View: New views
3 Messages — Rating Filter:   Alert me  

How can I get the client IP address or the client hostname

by jamel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I work with apache xmlrpc version 3 with the webserver class, in the handler class I would get the IPAddress. Can You help me please

Regards
--Jamel

Parent Message unknown Re: How can I get the client IP address or the client hostname

by Mike Boyers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I asked a similar question a while back and someone pointed me to the answer here:

http://people.apache.org/~jochen/xmlrpc/faq.html#client_ip

I did implement my solution as proposed (using ThreadLocals) and it's been working fine for me.

Mike

--- On Wed, 5/13/09, jamel <jamel.essoussi@...> wrote:

> From: jamel <jamel.essoussi@...>
> Subject: How can I get the client IP address or the client hostname
> To: xmlrpc-dev@...
> Date: Wednesday, May 13, 2009, 5:57 AM
>
> Hi,
> I work with apache xmlrpc version 3 with the webserver
> class, in the handler
> class I would get the IPAddress. Can You help me please
>
> Regards
> --Jamel
> --
> View this message in context: http://www.nabble.com/How-can-I-get-the-client-IP-address-or-the-client-hostname-tp23518822p23518822.html
> Sent from the Apache Xml-RPC - Dev mailing list archive at
> Nabble.com.
>
>


     

Re: How can I get the client IP address or the client hostname

by jamel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
But I not use the XmlRpcServlet, I use the XmlRpcServer and the webserver.
Regards
--Jamel

Mike Boyers wrote:
I asked a similar question a while back and someone pointed me to the answer here:

http://people.apache.org/~jochen/xmlrpc/faq.html#client_ip

I did implement my solution as proposed (using ThreadLocals) and it's been working fine for me.

Mike

--- On Wed, 5/13/09, jamel <jamel.essoussi@gmail.com> wrote:

> From: jamel <jamel.essoussi@gmail.com>
> Subject: How can I get the client IP address or the client hostname
> To: xmlrpc-dev@ws.apache.org
> Date: Wednesday, May 13, 2009, 5:57 AM
>
> Hi,
> I work with apache xmlrpc version 3 with the webserver
> class, in the handler
> class I would get the IPAddress. Can You help me please
>
> Regards
> --Jamel
> --
> View this message in context: http://www.nabble.com/How-can-I-get-the-client-IP-address-or-the-client-hostname-tp23518822p23518822.html
> Sent from the Apache Xml-RPC - Dev mailing list archive at
> Nabble.com.
>
>