Hi !
You mean the server name and port number ??
If U ment the client host name i think it not posible since
there is no clients yet :)
Eventually in at a request use:
String hostip=req.getRemoteAddr();
String hostname=req.getRemoteHost();
Best wishes,
Andras
-----Original Message-----
From: pascal jacob <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, June 11, 1999 4:42 PM
Subject: How to get Host name and port number
>My problem is to get the host name and the port number at init() time -
i.e.
>we don't have a ServletRequest yet !
>
>ZartC++
>
>___________________________________________________________________________
>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