Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Getting Servlet Request Info
icon5.gif  Getting Servlet Request Info [message #876794] Fri, 25 May 2012 09:36 Go to next message
R P is currently offline R PFriend
Messages: 4
Registered: May 2012
Junior Member
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 09:48]

Report message to a moderator

Re: Getting Servlet Request Info [message #876893 is a reply to message #876794] Fri, 25 May 2012 13:23 Go to previous message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
Senior Member

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: Wed Apr 24 23:24:16 GMT 2024

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

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

Back to the top