request.getRemoteAddr();

It's in the Servlet API under ServletRequest interface

getRemoteAddr
public java.lang.String getRemoteAddr()Returns the Internet Protocol (IP)
address of the client that sent the request. For HTTP servlets, same as the
value of the CGI variable REMOTE_ADDR.
Returns:
a String containing the IP address of the client that sent the request


robert

> -----Original Message-----
> From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 9:11 AM
> To: 'Emmanuel Boudrant '; 'Struts Users Mailing List '
> Subject: RE: IP Address
>
>
> Is that the correct method?  I get a 'can;t resolve symbol'
> compiler error.
> Thanks.
>
> -----Original Message-----
> From: Emmanuel Boudrant
> To: Struts Users Mailing List
> Sent: 9/18/02 6:09 AM
> Subject: Re: IP Address
>
> try this:
>
>  request.getRemoteXxx();
>
> -emmanuel
>
>
>  --- "Cohan, Sean" <[EMAIL PROTECTED]> a écrit : >
> > How do I get the referrer's IP address in my action class?  Thanks.
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to