public interface ServletRequest {
// Property Accessor Methods (by property name)
public abstract Enumeration getAttributeNames( );
public abstract String getCharacterEncoding( );
public abstract int getContentLength( );
public abstract String getContentType( );
public abstract ServletInputStream getInputStream( ) throws IOException;
public abstract Enumeration getParameterNames( );
public abstract String getProtocol( );
public abstract BufferedReader getReader( ) throws IOException;
public abstract String getRemoteAddr( ); // This will give you the ip
address of the client
public abstract String getRemoteHost( );
public abstract String getScheme( );
public abstract String getServerName( );
public abstract int getServerPort( );
Regards Christian Petersen
-----Oprindelig meddelelse-----
Fra: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Pa vegne af
Jonathan Silvergran, SM3OJR
Sendt: 7. januar 2001 16:36
Til: [EMAIL PROTECTED]
Emne: Pulling out users IP-number
Greetings,
Is it possible to somehow extract the IP number of the accessing browser's
computer from a servlet?
If so, how?
Any hints appreciated.
Thanks
Jon
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html