[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding information about a host



Check out java.net package. It has methods for geting
your IP adress and hostname.  Using "getLocalHost()"
to get the local host,  you can then get the IP
address and hostname. 

I hope this helps

Johnny

--- Ryn <matty91@bellsouth.net> wrote:
> Hello folks,
> 
> Is there an easy way to find the context in which a
> servlet is executing? I
> would
> like to print the hostname, IP address, and any
> environment variables available
> to a session bean or servlet on an web/application
> server.  I am using iPlanet
> web server and BEA Weblogic 6.1. Not sure if there
> is a portable way to do
> this.
> 
> Thanks for any info,
> Ryn
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/