Getting server information

From OpenCms Wiki
Revision as of 00:46, 28 June 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can get a variety of information about your server from OpenCms, however sometimes it is a more round-about route.

Get the Server IP address

To get the IP of the client use the following code. If you use the request object, you most likely will get the proxy IP.

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
out.print(cms.getRequestContext().getRemoteAddress());
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox