Hamid wrote:
>
> Thanx , but none of both returns the servers IP.
> request.getRemoteHost() :  gives the IP of client machine from where the
> page is accessed  and
> request.getServerName() : gives the full server name like if u r using
> www.jsp.com/abc then it will return www.jsp.com not the IP address.
>

 Try the docs for java.net.InetAddress. Be careful, servers
can have multiple IP addresses. Checking the documentation
is generally a good first step.



--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to