Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Getting Servlet Request Info
icon5.gif  Getting Servlet Request Info [message #876794] Fri, 25 May 2012 05:36 Go to next message
Eclipse UserFriend
I am using RWT.getRequest().getRemoteHost()in my project to get the remote host name but it always give me a IP6 address or a IP4 address instead of the host computer name. I am using 1.5 m6 and can anyone explain me the reason for this?

[Updated on: Fri, 25 May 2012 05:48] by Moderator

Re: Getting Servlet Request Info [message #876893 is a reply to message #876794] Fri, 25 May 2012 09:23 Go to previous message
Eclipse UserFriend
From the Java documentation[1]:
Quote:
If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address.


Hope that helps,

Cole

[1]http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getRemoteHost()
Previous Topic:rap using the birt3.7.1, IReportEngineFactory is null
Next Topic:GEF in RAP repaints the whole SWT canvas on any update
Goto Forum:
  


Current Time: Sun Jun 15 15:33:19 EDT 2025

Powered by FUDForum. Page generated in 0.25589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top