Sylvain wrote:
> I have done it by getting the output stream of a IFCONFIG command shell and
> parsing it to find the first IP with regular expressions. It works fine.
>
Does the static method:
NetworkInterface.getNetworkInterfaces()
not work in a servlet? It should provide the same information as ifconfig, but
without the overhead of creating a Process and parsing the output. Also,
parsing the output of ifconfig is almost certainly not portable.
Your original request was to extract the information from the servletContext,
which AFIAK is not possible.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail :
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555